It in the memory and common Java class instances are the same?
CodePudding user response:
He is through reflection created, essentially the same as newCodePudding user response:
See ActivityThread performLaunchActivity method, in which generate the activity code isactivity=mInstrumentation. NewActivity (cl, component getClassName (), r.i ntent);
Generate the Activity point in can see
Public Activity newActivity (this cl, String className,
Intent Intent)
Throws InstantiationException IllegalAccessException,
ClassNotFoundException {
Return (Activity) cl. LoadClass (className). NewInstance ();
}