Is it possible to show an alertDialog that is still showing when starting a child activity?
I am asynchronously fetching results from a server. The request is sent from activtiy A which then shows a progressDialog. When the fi开发者_C百科rst result is received, activity A starts activity B, which will receive the following results. But the progressDialog shown from A should still be shown when B starts.
How can I do this? thanks
I'm not sure if it will work but you could try changing the owner activity from Activity A to Activity B with: Dialog.setOwnerActivity()
for more info see the dialog docs
精彩评论