On Wed, Dec 15, 2010 at 2:50 PM, kl4232 <[email protected]> wrote: > I'm installing an app as follows... > > Intent intent = new Intent(Intent.ACTION_VIEW); > intent.setDataAndType(Uri.fromFile(myFile), "application/ > vnd.android.package-archive"); > startActivityForResult(intent, INSTALL_COMPLETED); > > And I'd like to know whether the user pressed "install" or "cancel" > when presented with the install screen. > Is there any way to propagate this result back to my activity?
AFAIK, no, but you can use PackageManager to see if your app is there. > The intent in > protected void onActivityResult(int requestCode, int resultCode, > Intent data) is null and the resultCode is always 0, regardless of > the button presses made by the user. That activity does not support results, apparently. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

