[android-developers] Timer + App updated

2010-09-27 Thread Will
Hi,

I would like to know how to intercept the event that the apk has been
updated in order to launch again my Timer.

Indeed, I have a Timer wich is "scheduledAtFixedRate", but when my App
is updated through the market, the timer is killed ; and if the user
doesn't launch the App, the timer is not started (so my app becomes
useless...).

How could I do to avoid it ? Is there an event to catch the "App
updated" ? I searched, tried, but nothing.

Thanks a lot for your help.

Regards,
--
Will

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Timer + App updated

2010-09-27 Thread TreKing
On Mon, Sep 27, 2010 at 3:07 PM, Will  wrote:

> Is there an event to catch the "App updated" ? I searched, tried, but
> nothing.
>

http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_REPLACED

Though I somehow doubt the app being installed will itself receive the
broadcast.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en