Created
March 11, 2016 20:25
-
-
Save imbeyondboredom/b2dccc3d2af01ca6ebba to your computer and use it in GitHub Desktop.
Gist for Activity Lifecycle events
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.os.Handler; | |
import android.support.v7.app.AlertDialog; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.util.Log; | |
public class MainActivity extends AppCompatActivity { | |
private static final String TAG = "DIALOG_SPLITSCREEN"; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
Log.d(TAG, "onCreate()" + this.toString()); | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
} | |
@Override | |
protected void onPause() { | |
super.onPause(); | |
Log.d(TAG, "onPause()"); | |
} | |
@Override | |
protected void onResume() { | |
super.onResume(); | |
Log.d(TAG, "onResume()"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment