我的活动onResume中手机来自深度睡眠模式时创建了一个应用程序,而onPause方法被调用了很多次。
我实施了以下活动方法:
onSaveInstanceState
,onRestoreInstanceState
,onPause
,onResume
,onCreate
,onStart,onRestart
,onStop
和onDestroy
方法我的活动配置是
<activity
android:name=".ScreenActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:configChanges="keyboardHidden|orientation"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
>
<intent-filter>
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
这是我的日志信息
2012_10_16 11:58:8:80 PM: ScreenActivity.onResume: Activity interacting with user
2012_10_16 11:58:8:119 PM: ScreenActivity.onSaveInstanceState: onSaveInstanceState method called
2012_10_16 11:58:8:119 PM: ScreenActivity.onPause: current activity got paused
2012_10_16 11:58:8:380 PM: ScreenActivity.onResume: Activity interacting with user
2012_10_16 11:58:8:409 PM: ScreenActivity.onSaveInstanceState: onSaveInstanceState method called
2012_10_16 11:58:8:411 PM: ScreenActivity.onPause: current activity got paused
2012_10_16 11:58:8:434 PM: ScreenActivity.onResume: Activity interacting with user
2012_10_16 11:58:8:493 PM: ScreenActivity.onSaveInstanceState: onSaveInstanceState method called
2012_10_16 11:58:8:497 PM: ScreenActivity.onPause: current activity got paused
2012_10_16 11:58:10:885 PM: ScreenActivity.onResume: Activity interacting with user
2012_10_16 11:58:10:914 PM: ScreenActivity.onSaveInstanceState: onSaveInstanceState method called
2012_10_16 11:58:10:916 PM: ScreenActivity.onPause: current activity got paused
2012_10_16 11:58:10:999 PM: ScreenActivity.onResume: Activity interacting with user
2012_10_16 11:58:11:32 PM: ScreenActivity.onSaveInstanceState: onSaveInstanceState method called
请提供帮助