Thursday, March 15, 2012

Re: [android-developers] Execute code on app install OR where to put C2DM registration code

On Thu, Mar 15, 2012 at 4:06 AM, giles ian <gilesian.513@gmail.com> wrote:
> I need to execute some code on app install event. How do i do it.

You don't.

> After some googleing i found there is no direct way. So which is the best
> work around for that.

You do the work when the user first runs your app.

> What i basically want to achieve is when the user installs app i want to do
> C2DM Registration.
>
> I tried to achieve above thing using shared prefs, but shared prefs
> remembers the value across multiple app install( on same device)

Sort that out on your server.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

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

No comments:

Post a Comment