On Thu, Mar 7, 2013 at 7:28 PM, JavaSrvcs <[email protected]> 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 [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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to