Monday, May 30, 2011

[android-developers] Re: Install APK programmatically - return value

On May 27, 1:53 pm, The Jaguar <thejag...@gmail.com> wrote:
> The problem I am facing is that "resultCode" always returns 0,
> irrespective of whether the user chose to install the app or not
> install the app. I really need to know whether the user installed the
> app or not. Any ideas as to why the return value is always 0?

How do you know that the activity you launched is supposed to ever
return something other than 0? You might have to dig into Android
source to know what to expect.

I would just use PackageManager to find out what's installed.

Doug

--
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