[android-developers] Re: Service stops?

2009-10-25 Thread Jason B.
I agree. If you are starting the service by binding to it with the activity, once the activity goes away the "bind" will go away and the OS will think there is no reason to keep the service up. If the service was started using a pending intent from the activity, the service then is started by th

[android-developers] Re: Alarm is canceled if app is stopped

2009-10-15 Thread Jason B.
allocated outside of the activity, so even if the application's virtual memory space is deleted, the pending intent still exists and the alarmmanager is still scheduled. Sorry if I missed the theme of the post. Good luck :) On Oct 15, 11:53 am, String wrote: > On Oct 15, 4:34 pm, "Jas

[android-developers] Re: Alarm is canceled if app is stopped

2009-10-15 Thread Jason B.
I know this thread is talking a lot about task management. I think the original post was about making alarms that still occur even if the app is closed. This is how I do it: 1) Use AlarmManager service to schedule PendingIntents in the future (I.e. xx min from now) 2) Creat an intent/PendingIn

[android-developers] Re: Installing USB Driver for G1

2009-10-04 Thread Jason B.
I had this problem with both XP and Vista. I can't remember the exact label but here is what I did to eventually solve it: 1) Install the Android SDK (the \android-sdk-windows-1.5_r3\usb_driver \x86 folder has usb drivers) 2) Connected my G1 via any USB cable (used a couple different ones, didn'

[android-developers] Re: Intent.putExtra (String name, String[] value) caching old value

2009-09-28 Thread Jason B.
The FLAG_ONE_SHOT doesn't quite do this, since if the first PendingIntent hasn't actually been used yet, and you try to create another one to be used later, it will match and grab the first and modify it, effectively getting rid of the first logical PendingIntent that would have been used.

[android-developers] Re: Intent.putExtra (String name, String[] value) caching old value

2009-09-26 Thread Jason B.
time for setData(). > > Lee > > p.s. also see the flags you can use at the end of the getService call > (read > the PendingIntent docs). There's something like > 'FLAG_REPLACE_CURRENT'. > > On Sep 25, 9:39 pm, "Jason B." wrote: > > > >

[android-developers] Intent.putExtra (String name, String[] value) caching old value

2009-09-25 Thread Jason B.
Hi, I'm creating an intent that I'm pushing to the AlarmManager so that a service will be run at a later time. I have a single string value I need to pass with the intent so the service knows what to "do" when it's onStart() is called. Here is the code that sets up my intent and pushes it to th