There's the ACTION_PACKAGE_ADDED<http://developer.android.com/intl/de/reference/android/content/Intent.html#ACTION_PACKAGE_ADDED> broadcast you could use to see when it's installed. I don't think there's one for if it was declined, but you could use some trickery in your onResume(). The only problem is if they hit the home button when the installer is showing and then somehow navigate back to your app in such a way that they can still get back to the installer.
On Thursday, March 1, 2012 7:08:58 AM UTC-8, ashiq sayyad wrote: > > Hi, > > Hope all doing well. > > I am trying to install app using following intent.. > > Intent intent = new Intent(Intent.ACTION_VIEW); > > intent.setDataAndType(apkUri, "application/vnd.android.package- > archive"); > startActivity(intent); > > This will launch package installer screen with ok & cancel commands > (depends on device) for user approval. > > If the user press Ok ,app will install & if user press > cancel,installation will decline.. > > Can I get these callbacks to my programme depending on user selection > means whether installation is successful or declined... > > Do I need to specify some key in the intent to acieve this???? > > Thanks & Regards, > Ashiq sayyad > > On Thursday, March 1, 2012 7:08:58 AM UTC-8, ashiq sayyad wrote: > > Hi, > > Hope all doing well. > > I am trying to install app using following intent.. > > Intent intent = new Intent(Intent.ACTION_VIEW); > > intent.setDataAndType(apkUri, "application/vnd.android.package- > archive"); > startActivity(intent); > > This will launch package installer screen with ok & cancel commands > (depends on device) for user approval. > > If the user press Ok ,app will install & if user press > cancel,installation will decline.. > > Can I get these callbacks to my programme depending on user selection > means whether installation is successful or declined... > > Do I need to specify some key in the intent to acieve this???? > > Thanks & Regards, > Ashiq sayyad > > On Thursday, March 1, 2012 7:08:58 AM UTC-8, ashiq sayyad wrote: > > Hi, > > Hope all doing well. > > I am trying to install app using following intent.. > > Intent intent = new Intent(Intent.ACTION_VIEW); > > intent.setDataAndType(apkUri, "application/vnd.android.package- > archive"); > startActivity(intent); > > This will launch package installer screen with ok & cancel commands > (depends on device) for user approval. > > If the user press Ok ,app will install & if user press > cancel,installation will decline.. > > Can I get these callbacks to my programme depending on user selection > means whether installation is successful or declined... > > Do I need to specify some key in the intent to acieve this???? > > Thanks & Regards, > Ashiq sayyad > > -- 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