Created
August 28, 2012 15:37
-
-
Save kojiokb/3499202 to your computer and use it in GitHub Desktop.
Activity#isFinishing()調査
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.app.Activity; | |
import android.os.Bundle; | |
import android.util.Log; | |
public class MainActivity extends Activity { | |
private final String TAG = getClass().getSimpleName(); | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
} | |
@Override | |
protected void onPause() { | |
Log.e(TAG, "onPause()"); | |
super.onPause(); | |
Log.e(TAG, "isFinishing() : " + isFinishing()); | |
} | |
@Override | |
protected void onDestroy() { | |
Log.e(TAG, "onDestroy()"); | |
super.onDestroy(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment