@Override protected void onCreate(Bundle savedInstanceState) { // The savedInstanceState's classLoader is not exist. super.onCreate(null); finish(); // It seems that we have conflict with the other Android-Plugin-Framework. Intent stubIntent = getIntent(); // Try to acquire the actually component information. StubActivityRecord r = new StubActivityRecord(stubIntent); if (r.intent != null) { if (TextUtils.equals(r.info.processName, VirtualRuntime.getProcessName()) && r.userId == VUserHandle.myUserId()) { // Retry to inject the HCallback to instead of the exist one. InvocationStubManager.getInstance().checkEnv(HCallbackStub.class); Intent intent = r.intent; intent.setExtrasClassLoader(VClientImpl.get().getCurrentApplication().getClassLoader()); startActivity(intent); } else { // Start the target Activity in other process. VActivityManager.get().startActivity(r.intent, r.userId); } } }
@Override protected void onCreate(Bundle savedInstanceState) { // The savedInstanceState's classLoader is not exist. super.onCreate(null); finish(); // It seems that we have conflict with the other Android-Plugin-Framework. Intent stubIntent = getIntent(); // Try to acquire the actually component information. StubActivityRecord r = new StubActivityRecord(stubIntent); if (r.intent != null) { if (TextUtils.equals(r.info.processName, VirtualRuntime.getProcessName()) && r.userId == VUserHandle.myUserId()) { // Retry to inject the HCallback to instead of the exist one. InvocationStubManager.getInstance().checkEnv(HCallbackStub.class); Intent intent = r.intent; intent.setExtrasClassLoader(VClientImpl.get().getCurrentApplication().getClassLoader()); startActivity(intent); } else { // Start the target Activity in other process. VActivityManager.get().startActivity(r.intent, r.userId); } } }
@Override protected void onCreate(Bundle savedInstanceState) { // The savedInstanceState's classLoader is not exist. super.onCreate(null); finish(); // It seems that we have conflict with the other Android-Plugin-Framework. Intent stubIntent = getIntent(); // Try to acquire the actually component information. StubActivityRecord r = new StubActivityRecord(stubIntent); if (r.intent != null) { if (TextUtils.equals(r.info.processName, VirtualRuntime.getProcessName()) && r.userId == VUserHandle.myUserId()) { // Retry to inject the HCallback to instead of the exist one. InvocationStubManager.getInstance().checkEnv(HCallbackStub.class); Intent intent = r.intent; intent.setExtrasClassLoader(VClientImpl.get().getCurrentApplication().getClassLoader()); startActivity(intent); } else { // Start the target Activity in other process. VActivityManager.get().startActivity(r.intent, r.userId); } } }