[android-developers] Re: Re-register AlarmManager events on upgrades

2009-03-18 Thread Michael Bollmann
On 18 Mrz., 16:56, StefanK wrote: > Often when you use AlarmManager, you have to also register to for > TIME_ZONE_CHANGED event to account for cases when the phone moves to a > different time zone. As it turns out it appears that those are sent > every time the phone updates its time form the cel

[android-developers] Re: Re-register AlarmManager events on upgrades

2009-03-18 Thread Marco Nelissen
On Wed, Mar 18, 2009 at 3:47 AM, Stoyan Damov wrote: > > On Wed, Mar 18, 2009 at 4:36 AM, Dianne Hackborn wrote: >> Fwiw, cupcake will add a new field to PACKAGE_ADDED to tell you if this was >> due to an update, and allow this broadcast to be received by the app to >> restart itself. >> > > Thi

[android-developers] Re: Re-register AlarmManager events on upgrades

2009-03-18 Thread StefanK
Often when you use AlarmManager, you have to also register to for TIME_ZONE_CHANGED event to account for cases when the phone moves to a different time zone. As it turns out it appears that those are sent every time the phone updates its time form the cell tower (several times a day) so if you reg

[android-developers] Re: Re-register AlarmManager events on upgrades

2009-03-18 Thread Stoyan Damov
On Wed, Mar 18, 2009 at 4:36 AM, Dianne Hackborn wrote: > Fwiw, cupcake will add a new field to PACKAGE_ADDED to tell you if this was > due to an update, and allow this broadcast to be received by the app to > restart itself. > This cupcake thing very much reminds me of Duke Nukem Forever... --

[android-developers] Re: Re-register AlarmManager events on upgrades

2009-03-18 Thread Michael Bollmann
Thanks that sounds good --~--~-~--~~~---~--~~ 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 t

[android-developers] Re: Re-register AlarmManager events on upgrades

2009-03-17 Thread Dianne Hackborn
Fwiw, cupcake will add a new field to PACKAGE_ADDED to tell you if this was due to an update, and allow this broadcast to be received by the app to restart itself. On Tue, Mar 17, 2009 at 3:44 PM, daniel.benedykt wrote: > > Hi > > I have the same problem. > As far as I know the only way is to set

[android-developers] Re: Re-register AlarmManager events on upgrades

2009-03-17 Thread daniel.benedykt
Hi I have the same problem. As far as I know the only way is to set a Service to start after the installation is done. Maybe you can put a service that runs once (not really a service hehe) that it will be initiated after the installation is complete, set up the alarms and end the service. Other