Thanks for the reply. But using this Package_added broadcast receiver, i can get only the successful install status for an app. If i want to get failure install status or want to know whether user selects "Install" or "Cancel" after reading the permission, then is there anyway to find it out?
Is it possible to use startActivityForResult api in this case? On Fri, Feb 11, 2011 at 2:13 PM, Mark Murphy <[email protected]>wrote: > You can watch for ACTION_PACKAGE_ADDED: > > > http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_ADDED > > However, there is no broadcast if the user abandons the install (e.g., > does not like the listed permissions). > > On Mon, Feb 7, 2011 at 5:23 PM, sathya <[email protected]> > wrote: > > My app downloads an app from the server and install it using below > > code > > > > Intent i = new Intent(Intent.ACTION_VIEW); > > i.setDataAndType(Uri.fromFile(f), "application/vnd.android.package- > > archive"); > > startActivity(i); > > > > I want to get the app installation status(success/failure). In case of > > failure, i want to get the failure reason. Is there a way to get > > these information? > > > > -- > > 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 > > > > > > -- > 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 [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 -- 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

