OnPause and OnStop() called immediately after starting activity

后端 未结 7 2004
鱼传尺愫
鱼传尺愫 2020-12-04 11:04

I have an activity that needs to turn screen on(if offed) when it is started. So in onCreate, I have:

this.getWindow().setFlags(
            WindowManager.La         


        
7条回答
  •  粉色の甜心
    2020-12-04 11:52

    Add android:configChanges="keyboardHidden|orientation|screenSize" to you Activity in your Manifest. This may solve your problem.

提交回复
热议问题