2

アクティビティの onResume で電話がディープ スリープ モードから復帰し、onPause メソッドが何度も呼び出されたときに、1 つのアプリケーションを作成します。
次のアクティビティ メソッドを実装しました:
onSaveInstanceStateonRestoreInstanceStateonPauseonResumeonCreateonStart、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