开发者

Is it possible to show an alertDialog is still showing when starting a child activity?

开发者 https://www.devze.com 2023-04-07 23:19 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号