开发者

Activity is grayed out after 'coming back'

开发者 https://www.devze.com 2023-03-12 21:38 出处:网络
I have this really weird problem with Android Activities. Whenever I \'return\' to an activity, it is \'grayed out\' and not touchable.

I have this really weird problem with Android Activities. Whenever I 'return' to an activity, it is 'grayed out' and not touchable. Li开发者_开发知识库ke there would be an invisible dialog on top of it.

by 'return' I mean:

  • I either start a new activity and press the Back-button to come back to the previous one
  • or just press the Home-button and then hold the Home-button until the recent Apps show up and then select my app again

After pressing the Back-Button, 'the gray' goes away and I can use the activity again just fine... but it's still rather strange and annoying

I have no real explanation for it.

I'm guessing something happens "onPause"... but I havn't even overwritten this method in my activity.


If you haven't overridden onPause, how about onResume, onStart, onStop, or onRestart?

From what you've said, the most likely problem are would be onResume. Are you overriding anything in your activities base classes?

My guess is that you are trying to display some sort of debug dialog and it is getting triggered in the onResume.

Also, are you trying to do anything with styles?

0

精彩评论

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