2

当手机在我的活动 onResume 和 onPause 方法被多次调用时进入深度睡眠模式时,我创建了一个应用程序。
我实现了以下活动方法:
onSaveInstanceState, onRestoreInstanceState, onPause, onResume, onCreate, onStart,onRestartonStop方法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

请提供帮助

4

0 回答 0