Created
December 15, 2017 19:27
-
-
Save martinomburajr/479a674a88563f57e043aa3d7c769b2a to your computer and use it in GitHub Desktop.
Instrumentation class, calling the Activity's onCreate
This file contains hidden or 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
| /** | |
| * @Retrieved from AOSP | |
| * Instrumentation class | |
| */ | |
| public void callActivityOnCreate(Activity activity, Bundle icicle) { | |
| //Note that the activity has already been initialized thanks to the prepareLaunchActivity(). | |
| //all that remains is just calling onCreate() | |
| prePerformCreate(activity); //prepares the activity | |
| activity.performCreate(icicle); //calls the oncreate | |
| postPerformCreate(activity); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment