[android-developers] Re: Avoid restarting http request on orientation change

2010-04-16 Thread Bob Kerns
You are 100% on the right track; this calls for a service. As for what happens when your activity is no longer running -- well, let's consider that. First, if your activity is simply no longer the current activity -- the user may have pressed Home, for example -- he may switch back to it. You'd l

[android-developers] Re: install .apk file OTA

2010-04-16 Thread Rishabh
Thanks patbenatar, I am trying it like this. On Apr 17, 11:31 am, patbenatar wrote: > Put it up on a webserver then go tohttp://www.yourserver.com/yourpackage.apk > and the file will be downloaded to your phone--delivering the apk > "OTA".. The Browser will recognize it as an apk file and if the

[android-developers] Re: What's wrong with this location code?

2010-04-16 Thread patbenatar
I have solved this problem [with much thanks to the brains on this group] by running two LocationListeners side-by-side, one fine [GPS] and one coarse [Network]. The first provider to get a location update wins and I use that location. This works for me as I don't care about the location being supe

[android-developers] Re: install .apk file OTA

2010-04-16 Thread patbenatar
Put it up on a webserver then go to http://www.yourserver.com/yourpackage.apk and the file will be downloaded to your phone--delivering the apk "OTA".. The Browser will recognize it as an apk file and if the user has Allow Non-Market Apps enabled, the user will be prompted for an install. I've nev

Re: [android-developers] Re: Prevent Orientation change at runtime

2010-04-16 Thread ~ TreKing
2010/4/15 jongnam!~ > after your answer read i tried it but SuperNotCalled Exception is issued > > can i resolve this Exception? > If the system is telling you it's throwing an exception because "super" was not called, why don't you try calling super.whateverFunctionYouAreOverriding() in whateve

Re: [android-developers] Looped ListView

2010-04-16 Thread ~ TreKing
On Fri, Apr 16, 2010 at 7:29 AM, Pal wrote: > Please, advice if you have any ideas Here's one idea. Implement a custom adapter and have the getCount() (or whatever) function return 1,000,000 or something equally ridiculous. Then implement getView() to do a mod operation on the actual number of

Re: [android-developers] Android Preferences

2010-04-16 Thread ~ TreKing
On Fri, Apr 16, 2010 at 12:14 AM, Abhinav wrote: > What is the difference between Preference.OnPreferenceChangeListener and > Preference.OnPreferenceClickListener? > Going to go out on a limb and take a massive stab in the dark ... but ... maybe, on tells you when a preference was CHANGED and one

[android-developers] Listview with button on same activity

2010-04-16 Thread Er. syed imran ali
Hi all, i tried a lot but i did not success, my problem is i want to add first one button and below that one listview. for that i divided my xml in two Linearlayout as below in code but it is not working when i am hiding button code then list view is coming other wise only button is coming on the s

[android-developers] Re: Android 1.5 marketshare is increasing

2010-04-16 Thread Anthoni
Hi, don't know if this is the case for everyone but I am on a 1.5 device. HTC Hero and currently waiting for the 2.1 release from HTC that is being constantly delayed. 3 (in the UK) have been doing a push for new HTC Hero contracts (probably to get rid of the backlog whilst they stock the Desire),

[android-developers] Re: Selling outside the Android Market--> Use Google Checkout to sell direct from website??? SlideMe.Org??

2010-04-16 Thread mot12
George, By all means, be honest. Fact is that you have ignored my request for a payout that I sent you March 12, 2010. That's a long time ago. The same day I make a negative posting here about you, you send me an email with a bogus explanation that I have not followed some formal format. You never

[android-developers] Re: Question about the Lsit View

2010-04-16 Thread SheikhAman
Google for Droiddraw first. it will give you a nice toll to draw all ur layouts in android. secondly, use an vertical linear layout, in it, add a text view, then add a list view, then add a linear layout, inside linear layout, add button1 and button2. so the text view, list view and linear layout

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-16 Thread Amir Alagic
I really appreciate this and am thankful to Google but I think it would be much better that they invested that money to improve Android Market and to add paid apps support for more countries as they promised in Q1 2009. That would create more buzz and would give us all more great apps on Android p

[android-developers] requestLocationUpdates issue

2010-04-16 Thread Tejas
Hi, My class listed below is not working. No idea whatsoever. The onLocationChanged method is never getting called ! I checked the logs for any errors/exceptions. I have the required permissions set (fine and course locations). I doubt the Context I'm setting from the caller. I'm using getApplicat

[android-developers] Avoid restarting http request on orientation change

2010-04-16 Thread patbenatar
Hey all- I've run into an interesting little issue.. My loader Activity fetches data from a web API, starting an http request and waiting for the result.. Now what if the user flips their phone mid-http request? The Activity is destroyed and restarted, thus the http request restarts as well. The f

[android-developers] Re: Is there a concept like DLL in Androids?

2010-04-16 Thread Maps.Huge.Info (Maps API Guru)
>> and to avoid for now dealing with the deep dependency issues shared >> libraries create knows as DLL Hell. That's the first thing I thought of when I saw DLL in the subject. Eegad! -John Coryat -- You received this message because you are subscribed to the Google Groups "Android Developers"

[android-developers] Re: Is there a concept like DLL in Androids?

2010-04-16 Thread Bob Kerns
I understand, and completely concur with, this decision. However, this leaves a major unfilled hole, that is limiting how developers can cooperate. Basically -- an application cannot depend on a service, provider, or other component that it needs being present, unless it provides it itself. What

[android-developers] Re: glCopyTexImage2D - Success anyone?

2010-04-16 Thread Andres Colubri
Any updates on this one? I have been trying to copy the contents of the back buffer into an opengl texture, but without success. I'm using the same method mentioned in the first post of this thread: gl.glCopyTexImage2D(GL10.GL_TEXTURE_2D, 0, GL11.GL_RGB, 0,0, w, h, 0); where w and h are the cu

[android-developers] Re: Android animation not firing immediately

2010-04-16 Thread Bob Kerns
There's nothing to fix; that is what is supposed to happen. Even if it WERE called immediately -- you'd not see any updates to the view until onTouchEvent() exits. You'll need to allow the rest of the system to run between steps of your animation. I'm not sure what to suggest for your tile consol

[android-developers] Re: Spinner getting selected string

2010-04-16 Thread Bob Kerns
You have a few options. You can ask the view for the position of the selected item (getSelectedItemPosition()), or the ID you associated with that item (getSelectedItemId()), or register listener with setOnItemSelectedListener(). You can get the associated item with getSelectedItem(). You can get

[android-developers] VideoView causing an error

2010-04-16 Thread Matthew Patience
I am attempting to make a VideoView to obviously play videos on. When I use the following code though I get the error "Cannot cast from View to VideoView" on the marked line below. public class VideoView extends Activity { private String video_link; private VideoView video_view;

[android-developers] Android 1.5 marketshare is increasing

2010-04-16 Thread Petroleum Nasby
The "Android Device Dashboard" 4 January 2010: Android 1.1 0.3% Android 1.5 31.0% Android 1.6 47.6% Android 2.0 0.7% Android 2.0.1 20.4% 12 April 2010: Android 1.1 0.1% Android 1.5 38.0% Android 1.6 31.6% Android 2.0 0.3% Android 2.0.1 2.7% Android 2.1 27.3% Thankfully, t

[android-developers] Re: How to stay backwards and forwards compatible - targetSDKVersion, hdpi, minSDKVersion?

2010-04-16 Thread Matt Kanninen
On Apr 16, 3:31 pm, Dianne Hackborn wrote: > > 3. Even if I leave out the targetSdkVersion="4", the app runs ok. So > > do I really need it? > > You do if you want the system to run your app as well as possible on SDK 4 > or later. The worst bug I've had so far in Android development was an out o

[android-developers] Re: What's wrong with this location code?

2010-04-16 Thread JP
What I do. I never even look at lastKnownLocation; as you state it might be old like dustballs. This means I will only process locations received fresh from onLocationChanged(). As you note, this may never happen. So keep users informed accordingly! If you couldn't acquire a fix, let the user know.

[android-developers] Re: Morphing TextView background images?

2010-04-16 Thread HippoMan
I just tried your suggestion using two TextViews within a FrameLayout. It works perfectly, so I don't have to worry about manually wrapping text within an ImageView. Here's the logic: In my onOptionsItemSelected() method, after a menu click: * TextView 1 is currently in the front * Put a new bac

[android-developers] Re: Morphing TextView background images?

2010-04-16 Thread HippoMan
I should clarify that I want the text to be wrapped and centered on the images, just like the effect I would get by setting the following attributes on my TextView: android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_vertical|center_horizontal"

Re: [android-developers] Re: Selling outside the Android Market--> Use Google Checkout to sell direct from website??? SlideMe.Org??

2010-04-16 Thread Shane Isbell
On Fri, Apr 16, 2010 at 12:36 AM, mot12 wrote: > I would not trust SlideMe. > > For my best selling app, I had >10,000 sales through Google Market, > 900 sales via PayPal and 20 sales via SlideMe. So I stopped my sales > on SlideMe and asked for a payout. They told me they only do payouts > > $10

[android-developers] Re: Setting size of image in Gallery widget from xml

2010-04-16 Thread Open
Hi Paul- I've been looking for an answer to this too. Did you find one? Thanks- On Apr 1, 7:08 am, Geefer wrote: > Hi, > Does anyone know how to set the size of the images in a Gallery view > from an xml file rather than setting in java using: > imageView.setLayoutParams(newGallery.LayoutParam

Re: [android-developers] Re: Spurious calls to onPause?

2010-04-16 Thread Michael Thomas
Mark Murphy wrote: asher wrote: OK, I should have done this earlier. I created a new Android app in Eclipse, added an onPause override in the activity containing nothing but a single log message (and the super call), and ran it, and got exactly the same behavior. This seems to be either a bug

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-16 Thread carknue
Yes, north european airports are closed since yesterday and all German airports are closed since today. London is closed and Amsterdam as well. Last time the vulcano on iceland was active for 14 month, so maybe we will have to wait little more... But it is pretty quiet in Frankfurt now;) -- You

[android-developers] Why doesn't inPurgeable work with BitmapFactory.decodeFile?

2010-04-16 Thread Nilz
Hi, Can anyone explain why when I load images from files using BitmapFactory.decodeFile and passing in a BitmapFactory.Options with inPurgeable set to true, I still get OutOfMemoryError? For example, doing the following many times, with lots of different resources works fine: BitmapFactory.Optio

[android-developers] Re: Why am i getting same values of different JSON date values?

2010-04-16 Thread Bob Kerns
I am confused. JSON does not have a date format. And you do not show any JSON code! Just what is your question? On Apr 16, 5:26 am, Maxood wrote: > I do not know the reason why am i getting same values of different > JSON date values. Here is my code for parsing date values in JSON date > forma

[android-developers] Re: What's wrong with this location code?

2010-04-16 Thread Anna PS
> On Apr 16, 12:45 am, JP wrote: > On Apr 15, 8:35 am, Anna PS wrote: > > > Yet in my log files, I can > > still see the Android NetworkLocationProvider logging > > onCellLocationChanged events. Is this a bug in my code? > > Without diving into your code. Double check it by using GPS. GPS is > co

[android-developers] Re: Morphing TextView background images?

2010-04-16 Thread HippoMan
Thank you very much. I am wanting changeable text to appear in the images. Is it possible to superimpose text on an ImageView? If so, then this will provide the exact functionatlity that I'm looking for. -- You received this message because you are subscribed to the Google Groups "Android Develo

Re: [android-developers] How to stay backwards and forwards compatible - targetSDKVersion, hdpi, minSDKVersion?

2010-04-16 Thread Dianne Hackborn
On Fri, Apr 16, 2010 at 2:00 PM, sandscorpio wrote: > 1. By specifying v4 in drawable-hdpi-v4, the icon will not be > displayed to 1.5 or below OS's. But what about users with 2.0 or > higher SDK's? Will they get the non-hdpi icon, since they will have v6 > or v7 ? > Yes they will get them. This

Re: [android-developers] Is there a concept like DLL in Androids?

2010-04-16 Thread Dianne Hackborn
We do not support third party shared libraries. Applications can interact through high-level components like activities, services, content providers, receivers, but not directly as shared libraries. This is done for security reasons (shared libraries cross app sandboxes) and to avoid for now deal

[android-developers] Question about the Lsit View

2010-04-16 Thread desgraci
Hi i'm new on this forum, i searched for a way to make "divs" in my android apps but i cant find any post of this theme, so i post what i want to do here: |Text View | not scrollbable | List | Scrollbable

Re: [android-developers] Settings application

2010-04-16 Thread Dianne Hackborn
Settings are stored in a lot of different places, depending on what they are. It is done for access control reasons (the settings db is word readable, but some things should not be accessible to everyone), convenience (specific internal settings for a particular component), and other reasons such

Re: [android-developers] Multiple instances of android service?

2010-04-16 Thread Dianne Hackborn
Services are singletons. You do not use stopService() with bindService(). A service remains instantiated as long as there are one or more clients to it, OR it is explicitly in the start state. On Thu, Apr 15, 2010 at 4:31 PM, Surendra Prasad wrote: > Hi, > I would like to do this, let me

[android-developers] dependency between applications

2010-04-16 Thread dnak
Hi, all. I want to know how to know the dependency between applications. Calender needs CalendarProvider, Phone needs TelephonyProvider etc... And more complex example is that com.android.music depends on android.process.media and /system/bin/mediaserver. Please teach me how to know the dependenc

[android-developers] Re: SMS text messages and data messages

2010-04-16 Thread Shih-Peng
There is a significant bug of the data SMS functionality on the released versions of SDKs. But same code might work fine on real device, like HTC G1 and HTC hero. On 4月16日, 上午3時48分, 64 wrote: > HEEELP > > Can anyone explain how to send sms text messages on a specific > appli

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-16 Thread peter
Am I the only developer in Hong Kong? I haven't received this phone yet. Been patiently waiting On 4月16日, 上午5时30分, Thomas Riley wrote: > Surely the use cheaper ground shipping? Especially for a free product. > > Good point though. > > On Apr 15, 9:14 pm, Ove Olavgaard wrote: > > > > > I'll g

[android-developers] No effect of canvas.rotate() on custom Surface view from XML

2010-04-16 Thread Tomek
Hi There, I've made an example code (http://smartandroidians.blogspot.com/ 2009/10/rotating-bitmap-in-android.html) on rotating Bitmap from resouce on the CustomView (derived from SurfaceView) and it works as long as I use: setContentView(new MySurfaceView(this)); But when I put the view info to l

[android-developers] Flinge and LongPress Drag

2010-04-16 Thread androidFan
Hi Guys, I am stuck with one requirement, i am involved in developing a display application. I need to switch between activities on a fling When the user presses Long Press and then drags, i should be able to move my view, i.e. the image itself. Currently i am planning to override the

[android-developers] Android animation not firing immediately

2010-04-16 Thread Dave Fine
My project has a View that is supposed to start its tween animation (using startAnimation()) when onTouchEvent() is called. I would expect the animation to start immediately since that is what is documented (http://developer.android.com/reference/android/view/ View.html#setAnimation%28android.view.

[android-developers] Using AutoText

2010-04-16 Thread Charles Barnwell
I am trying to write an application to check spelling. I want to start off with the AutoText class, but I can't work out how to instantiate an AutoText object. Are there any examples available, Charles. -- You received this message because you are subscribed to the Google Groups "Android Devel

[android-developers] Re: Get user info - email

2010-04-16 Thread Ivan Greene
I've recently made an app that stores info about the user that other apps may get data from: Look at User Info in the Market, and User Info Example To add it to your app, please see the documentation at http://code.google.com/p/android-user-info-example/ --Ivan On Mar 10, 4:56 am, biokys wrote:

[android-developers] Spinner getting selected string

2010-04-16 Thread matio
Hi everyone, I'm trying to expand a todo list program taken from a tutorial in a magazine. The problem I'm having is getting the value from a spinner that is selecting the priority of the item, how do I do it? I think it is something to do with views but how do I get the string? Thanks in advance.

[android-developers] Re: Prevent Orientation change at runtime

2010-04-16 Thread jongnam!~
hi~~ i have a question~ after your answer read i tried it but SuperNotCalled Exception is issued can i resolve this Exception? i tried that try {} catch(Exception e) {} but can't catch the excepton . i want to handle orientation in rum time T_T help~ On 4월16일, 오전12시15분, blcooley wrote: >

[android-developers] Settings application

2010-04-16 Thread Abhinav
I was exploring the settings application in android and found that the system settings were getting stored in two places, one in settings.db database and the other in settings_preferences.xml file Most of the settings are persisted in the database while a few are persisted in a shared preferences

Re: [android-developers] Plz need Help

2010-04-16 Thread Shoby Sunny
let X and Y be the 2 activities, and X wants to send some txt to Y... the snippet of X should be like this: Code: private void sendTxt() { Intent intent = new Intent();//intent is like the envelop intent.setClass(X.this, Y.class);//arg1 is the current class and arg2 is the class u wanna call Bun

[android-developers] Javassist on Android

2010-04-16 Thread Justin King
Hi Guys, I'm wondering if its possible to use tools like Javassist on Android? I'm guessing no because it builds JVM specific bytecode at runtime but I'd love to know. I'm also attempting to use JBoss Rule (Drools) in an Android app. Thanks for any help! -- You received this message because you

[android-developers] Location listener called multiple times

2010-04-16 Thread sujit panda
Hi, I am working on an Location Based Application. In this application i am using LocationListener class to update the location when the Location is changed.In each Activity i have different LocationListener to update location and do some specific work on updated location. But my problem is that w

[android-developers] Multiple instances of android service?

2010-04-16 Thread Surendra Prasad
Hi, I would like to do this, let me know if it possible in android? App1 --> bindService() or startService() to AndroidService1 App2 --> bindService() or startService() to AndroidService1 (same service) I would like App1 and App2 to get different instances of AndroidService1. Why I want to

[android-developers] Rendering scaled bitmap with high fps

2010-04-16 Thread Frederic
I'm in the following situation: I have a large bitmap (~1280x1024) that I'd like to display on screen, scaled down in a view that fits the phone's screen (~480x320). This bitmap is frequently updated (couple of tiles per frame at 15 FPS). I first wanted to implement the rendering with a SurfaceView

[android-developers] Is it possible to make changes in Remote Views.java

2010-04-16 Thread Sharath BS
Is it possible to make changes in RemoteViews.java in android source code and successfully generate a build? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubsc

[android-developers] Re: How to use the lib(.jar) which android sdk didn't contain

2010-04-16 Thread Clark Guan
Hi, I have the same problem using dom4j in Android project. It can be compiled but output some warning... On 4月16日, 下午2时24分, javame_android wrote: > Hi, > > Android has Dalvik Virtual Machine and not Java Virtual Machine. So, I > don't think you will be able to use this class in Android. > > In

[android-developers] Immediate Opening for or client in Hyderabad for Android SDK Developers

2010-04-16 Thread Swathi Reddy
Dear Professionals Greetings for the day!! We have a pretty urgent opening for our client(MNC) in Hyderabad for Android developers with Java AND Android with Linux. Location : Hyderabad. Experience : 2 to 8 years(Android with Linux) : 2 to 4 years(Android with Jav

[android-developers] Looped ListView

2010-04-16 Thread Pal
Hi, I want to implement ListView widget that will scroll its elements in loop. Like if we have 10 element in list we need to show 1, 2,.. after 10th element. |1 2 3 4 5| |8 9 10 1 2| |10 1 2 3 4| I suppose I need to extend ListView and probably override some methods. But I dont know ex

[android-developers] Can not visualize correctly the written text of an EditText after animation

2010-04-16 Thread billahi
At the end of a TranslateAnimation, when I write into my EditText that started that animation, it looks like I'm trying to write into the initial EditText. So It happens that I see a part of my text, sometimes I can see nothing. The EditText was well translated but not the rectangle where the text

[android-developers] Auto-correction issues in Android 2.0 or higher?

2010-04-16 Thread peter
Hi, Been really confused with the auto-correction / auto-capitalization feature of the Android built-in keyboard. I can't seem to get my app to activate them. It used to work in 1.5/1.6 but not in 2.x anymore. Is there something I am missing? I would appreciate any quick help so I can resolve the

[android-developers] Dev with barcode reading expertise

2010-04-16 Thread Nash
Hi Guys, I need to develop an app that reads barcode code 39. There are some out there, but I need one optimized to read VIN (vehicle identification numbers.) This might simply involve finding the right lib, or tweaking a current one to work right. If you're interested, please let me know.

[android-developers] install .apk file OTA

2010-04-16 Thread Rishabh
Hi, I have an android's .apk signed file , how can I install it OTA on my Android 2.1 device. Thanks Rishabh -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsub

Re: [android-developers] How to provide animation when calling another activity in Android?

2010-04-16 Thread Clark Guan
Hi sunil: I will try my best to answer in English... I don't know whether or not you have got Android source code. If you got them, you could find file named "themes.xml" under the path "src_main_directory\frameworks\base\core\res\res\values". Can see code like this: ... ...

[android-developers] Is there a concept like DLL in Androids?

2010-04-16 Thread Prashant Shelar
Hello, 1. We know that we can use a concept "Java Package" but I just wanted to know that whether Android has provided a DLL concept where I can write my most of the functionality for reuse purpose. 2. Also there is doubt in mind: Can we use "Activity" for the purposes that DLL provides? Is ther

[android-developers] Android Preferences

2010-04-16 Thread Abhinav
Hi What is the difference between Preference.OnPreferenceChangeListener and Preference.OnPreferenceClickListener? Abhinav -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups

Re: [android-developers] Re: How to use the lib(.jar) which android sdk didn't contain

2010-04-16 Thread sujit panda
yes you can add the jar file to android project. If you are using Eclipse then right click on the project properties--->java build path--->library-->add library thank you. On Fri, Apr 16, 2010 at 11:54 AM, javame_android wrote: > Hi, > > Android has Dalvik Virtual Machine and not Java Virtu

[android-developers] Re: Cant login into android market. Market down?

2010-04-16 Thread Joël Bourquard
When I go to http://market.android.com/publish/Home I get a HTTP 404 error. Hope this is resolved soon... -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscr

[android-developers] Error while consuming Axis2 based WEB SERVICE...

2010-04-16 Thread DarsHan
Hello , I am new to axis ,I have created a web servcie with couple of methods using axis2 and deployed it on tomcat.And am calling that web service from my android program with the help of ksoap.But wen i call a method which doesn't take any parameter am gettin fine reply from web service which i

[android-developers] NDK / glsl / Es 2.0 advice please?

2010-04-16 Thread HaMMeReD
Working with NDK here. How are perspective correct projection supposed to occur in es 2.0. I can currently draw my geometry to the screen, but it is not getting transformed to 2d. Is there some sort of way of getting meaningful compiler errors out of the shader compiler? Is there a android speci

[android-developers] Re: Waiting for Debugger

2010-04-16 Thread String
It happens to me fairly frequently, and I find that I need to restart Eclipse to clear it. I think ADB is, well, buggy. String On Apr 16, 6:03 pm, dillipk wrote: > I still have the same problem.. any help on this please? > > On Mar 29, 11:45 am, dillipk wrote: > > > Hello, > >     I am trying t

[android-developers] Re: OpenGL and the use of ByteBuffers

2010-04-16 Thread Robert Green
That's why you're supposed to load them all in one batch at the beginning and then not do it during runtime. glTexImage2D is one of the slowest things there is on any chip. If you're targeting ES2.0, you have things like framebufferobjects that you can use to handle dynamic texturing using the GP

[android-developers] Browser Back Button

2010-04-16 Thread Jaikishan Jalan
Hello, I see that there is no provision for navigating back on Android Browser. I see that it does have a forward button. To go back, I am forced to use the back button on the device but the problem with that it does not retain the state of the page. I am curious if this is a feature or a bug ? If

Re: [android-developers] moveTaskToBack returning false.

2010-04-16 Thread ~ TreKing
On Fri, Apr 16, 2010 at 3:53 PM, Prajakta Shitole wrote: > no i dint because the documentation says that for any activity other than > main activity u need to pass true Oh yeah, I read that wrong ... oh well, there goes that ... good luck. ---

[android-developers] How to stay backwards and forwards compatible - targetSDKVersion, hdpi, minSDKVersion?

2010-04-16 Thread sandscorpio
Here's my situation: I have an app that's been compiled using 1.5 SDK and minSdkVersion=3. Now I want to add 2 icons: one for high density screens like Droid and another one for low density screens like G1. For this, I added the high density icon to new directory drawable-hdpi- v4/. I then compile

Re: [android-developers] moveTaskToBack returning false.

2010-04-16 Thread Prajakta Shitole
it still returns false - after passing false in moveTaskToBack On Fri, Apr 16, 2010 at 1:53 PM, Prajakta Shitole wrote: > no i dint because the documentation says that for any activity other than > main activity u need to pass true.. will try anyways.. n let u knw.. > > > On Fri, Apr 16, 2010 at

Re: [android-developers] moveTaskToBack returning false.

2010-04-16 Thread Prajakta Shitole
no i dint because the documentation says that for any activity other than main activity u need to pass true.. will try anyways.. n let u knw.. On Fri, Apr 16, 2010 at 1:49 PM, ~ TreKing wrote: > On Fri, Apr 16, 2010 at 1:08 PM, praj wrote: > >> I am trying to send all my activities to backgroun

Re: [android-developers] moveTaskToBack returning false.

2010-04-16 Thread ~ TreKing
On Fri, Apr 16, 2010 at 1:08 PM, praj wrote: > I am trying to send all my activities to background by > calling this.moveTaskToBack(true); > Did you try passing false? - TreKing - Chicago transit tra

Re: [android-developers] Return value for a PendingIntent launched via a Notification

2010-04-16 Thread Mark Murphy
ssozonoff wrote: > Hello, > > Is is possible to get back a result intent when launching an Intent > from a Notification? > > Similar to the way startActivityForResult() works ? Not directly -- there is nothing to receive the "result intent". Whatever the user launches from the Notification, tho

[android-developers] Return value for a PendingIntent launched via a Notification

2010-04-16 Thread ssozonoff
Hello, Is is possible to get back a result intent when launching an Intent from a Notification? Similar to the way startActivityForResult() works ? Thanks, Serge -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send

[android-developers] Re: onSharedPreferenceChanged() Not Called in Live Wallpaper (WallpaperService) Engine

2010-04-16 Thread shaun
Well, I tested one of the sample applications (http://code.google.com/ p/androgames-sample/) and both the Engine's and Settings' onSharedPreferenceChanged() methods are called and with the same instance of SharedPreferences object. So, apparently something is different in my Live Wallpaper. I wen

Re: [android-developers] Re: Spurious calls to onPause?

2010-04-16 Thread abisai rangel
Want to get the phone for free click here dont wait till supplys fly. On Fri, Apr 16, 2010 at 11:38 AM, Mark Murphy wrote: > asher wrote: > > OK, I should have done this earlier. I created a new Android app in > > Eclipse, added an onPause override in the ac

[android-developers]

2010-04-16 Thread Sergii Biloshytskyi
http://PaceyMolesworth3231.co.cc -- Шукай в телефонi мiй слiд... -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to androi

Re: [android-developers] Re: Spurious calls to onPause?

2010-04-16 Thread ~ TreKing
On Fri, Apr 16, 2010 at 1:16 PM, asher wrote: > Can anyone help? If anyone's actually reading this, would you at least > respond so I know I'm not shouting in the dark here? > Sorry, no idea what to tell you besides maybe override every other lifecycle function (onStop, onStart, etc) and see wha

Re: [android-developers] Re: Spurious calls to onPause?

2010-04-16 Thread Mark Murphy
asher wrote: > OK, I should have done this earlier. I created a new Android app in > Eclipse, added an onPause override in the activity containing nothing > but a single log message (and the super call), and ran it, and got > exactly the same behavior. This seems to be either a bug in Android > (I'

[android-developers] Re: Spurious calls to onPause?

2010-04-16 Thread asher
OK, I should have done this earlier. I created a new Android app in Eclipse, added an onPause override in the activity containing nothing but a single log message (and the super call), and ran it, and got exactly the same behavior. This seems to be either a bug in Android (I'm running 1.5), or I'm

[android-developers] Re: OpenGL and the use of ByteBuffers

2010-04-16 Thread Eong
I use glTexImage2D and glTexSubImage2D, it's okay on Droid/Milestone. 20ms for 854*480. But on Nexus one, it takes 150ms to draw a full screen.(800*480) On 4月16日, 下午7时39分, Mario Zechner wrote: > From my experience this also happens with the PowerVR chips in the > Droid/Milestone > > On 16 Apr., 1

[android-developers] Re: Game develop like "Air Attack" touching screen event

2010-04-16 Thread Robert Green
Make sure your view calls setFocusableOnTouchEvents(true) On Apr 16, 4:44 am, a a wrote: > Dear all, i tested below, but it don't work > > 1. I wrote my GodsendView > public class GodsendView extends View implements OnTouchListener > { >         @Override >         public boolean onTouch(View v,

[android-developers] Re: glTexImage2D very slow on phones like Nexus one

2010-04-16 Thread Robert Green
Eong, You said you are uploading every frame just to draw text? There are much more efficient ways to do that. On Apr 16, 11:14 am, Eong wrote: > I'm afraid it's not a same problem. > My problem only happenes on Snapdragon phones. > It's fine on Milestone or Droid. I found a few threads about t

[android-developers] moveTaskToBack returning false.

2010-04-16 Thread praj
Hi, I am trying to send all my activities to background by calling this.moveTaskToBack(true); on a menu button click, but the call returns me a boolean value false. Please can anyone let me know if my way to invoke this is wrong or if I am doing anything wrong. Thanks, Prajakta -- You received

[android-developers] Re: Spurious calls to onPause?

2010-04-16 Thread asher
Nobody's seen anything like this? I'm to the point where I'm just disabling big chunks of my app to see if I can get the behavior to go away, but while it's there it's preventing me from implementing onPause in any useful way. Incidentally, I tracked down the ParseCommandEcho line and it's not rel

[android-developers] Re: Waiting for Debugger

2010-04-16 Thread dillipk
I still have the same problem.. any help on this please? On Mar 29, 11:45 am, dillipk wrote: > Hello, >     I am trying to debug my application on Emulator, but it just > stucks off on one message "Waiting for Debugger - Application XXX is > waiting for the debugger to Attach". Its really annoy

Re: [android-developers] Re: What does targetSdkVersion do?

2010-04-16 Thread Dianne Hackborn
The camera doesn't use memory (for the most part) that would be accounted against the app and thus cause you to run out of memory. It is, however, a higher megapixel camera, and the resulting bitmaps you are making due to that in combination with the additional memory needed for higher density res

[android-developers] Re: glTexImage2D very slow on phones like Nexus one

2010-04-16 Thread Eong
I'm afraid it's not a same problem. My problem only happenes on Snapdragon phones. It's fine on Milestone or Droid. I found a few threads about this but no solution. On 4月16日, 下午9时15分, Felipe Silveira wrote: > Just a guess: It can be the same error reported > here:http://code.google.com/p/androi

[android-developers] Highlight part of the text in a textview object

2010-04-16 Thread sebastian23
Hi toghether i habe some text displayed in a textview and would like to highlight (e.g. a specific background or font color) part of it. But how can i do that? didn't found a solution in the api or google. thanks for any hint -- You received this message because you are subscribed to the Google

[android-developers] accessing and changing Sync setting for android 1.5, 1.6 and more

2010-04-16 Thread zehunter
hi, i'm not able to find any example or documentation or tutorial about how to enable or disable sync (background data and auto sync) programmaticaly, even if i can found many widget that can do that without root access or such. is it something secret? :-) can any one may be good enough to help m

[android-developers] onSharedPreferenceChanged() Not Called in Live Wallpaper (WallpaperService) Engine

2010-04-16 Thread shaun
I am experiencing something strange with a Live Wallpaper. I very closely followed several examples out there on Live Wallpapers in regards to shared preference settings (e.g. Android sample app Cube Live Wallpaper). The Engine implements SharedPreferences.OnSharedPreferenceChangeListener and the

[android-developers] Re: Sending email with attachment

2010-04-16 Thread powder
Sorry for not responding earlier. This worked for me: public static void sendFile(Context context) { String emailPreference = PreferenceManager.getDefaultSharedPreferences(context).getString("emailPreference", ""); String subjectPreference = PreferenceManager.getDefaultSha

[android-developers] Re: Social Gaming Platforms

2010-04-16 Thread Maurício
Nice to know that at least one of the companies is actually interested in the developers :) On Apr 14, 4:02 am, Junde wrote: > Hi Michael, Rob and Mauricio, > > I'm Junde from Scoreloop and I'm here to help :) > > Yes, our Android platform is currently only available to a few > developers we are

[android-developers] Re: java.nio IntBuffer.get perfomance problem

2010-04-16 Thread Ingersol
-- >   public abstract int get(); <--- so it will use DirectByteBuffer's > get() method since they share only one get() method It uses IntToByteBufferAdapter's .get(), but it uses DirectByteBuffer.g

[android-developers] java.nio IntBuffer.get perfomance problem

2010-04-16 Thread Ingersol
Hello. I have an direct buffer ByteBuffer mScreenBuffer = ByteBuffer.allocateDirect(width*height*4); I can read him trought byte[] bytebuf = new byte[width*height*4]; mScreenBuffer.get(bytefuf); and it will be lightingly fast Well, now i need array of ints so lets make some changes: int[] intbu

  1   2   >