1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| private Activity performLaunchActivity(ActivityClientRecord r, Intent customIntent) { ComponentName component = r.intent.getComponent(); Activity activity = mInstrumentation.newActivity( cl, component.getClassName(), r.intent); Application app = r.packageInfo.makeApplication(false, mInstrumentation); Context appContext = createBaseContext(activity, r); activity.attach(appContext, this, getInstrumentation(), r.token, r.ident, app, r.intent, r.activityInfo, title, r.parent, r.embeddedID, r.lastNonConfigurationInstances, config, r.referrer, r.voiceInteractor, window, r.configCallback); if (r.state != null) { r.state.setClassLoader(activity.getClassLoader()); } mInstrumentation.callActivityOnCreate(activity, r.state); return activity; }
|