[android-developers] How to block an Intent/Action until complete?
I have an Activity that calls two methods: uninstallApp(); installApp(); The uninstallApp() runs and presents a confirmation dialog and then gets overlayed by an installation dialog. How do I block/pause the uninstallApp() dialog until that is complete before the app begins to install? If the app is not on the device, I should not get a confirmation dialog, it should just continue. However if the app is on the device, I want to confirm, delete the app and reload from the app store or from a url or from an apk on my sdcard. For some reason the are you sure you want to uninstall pops up and gets overlayed by the app store page to install the app (method call right after). J.V. -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] How to block an Intent/Action until complete?
On Thu, Mar 7, 2013 at 7:28 PM, JavaSrvcs jvsr...@gmail.com wrote: I have an Activity that calls two methods: uninstallApp(); installApp(); The uninstallApp() runs and presents a confirmation dialog and then gets overlayed by an installation dialog. How do I block/pause the uninstallApp() dialog until that is complete before the app begins to install? You can't. You will need to wait until you receive word from the OS, from an ACTION_PACKAGE_REMOVED broadcast, that the uninstall was done by the user, before you proceed trying to install the app. -- 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 Android Development_ Version 4.6 Available! -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.