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?

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.

Thanks for your help.

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

Reply via email to