Skip to content

Instantly share code, notes, and snippets.

@kojiokb
Created August 28, 2012 15:37
Show Gist options
  • Save kojiokb/3499202 to your computer and use it in GitHub Desktop.
Save kojiokb/3499202 to your computer and use it in GitHub Desktop.
Activity#isFinishing()調査
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