开发者

Android - Black Screen after clicking BACK in an Activity with an AltertDialog after Search Activity

开发者 https://www.devze.com 2023-03-03 06:10 出处:网络
I have an Activity which displays an alert dialog priot to the content. Also a search activity is called before this activity.

I have an Activity which displays an alert dialog priot to the content. Also a search activity is called before this activity.

Now when i press back on this activity i am lead to a black screen (which i assume is eighter because of the dialog [unl开发者_运维知识库ikely] or from the search activity). Only when i press BACK twice i get to the activity i was before.

How can i get rid of this?

Thank you.


This phenomenon was caused by the search activity. to avoid this i simply added android:noHistory="true" for the Search Activity in the Manifest.

0

精彩评论

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