当前位置:网站首页>A application wakes up B should be a fast method

A application wakes up B should be a fast method

2022-07-05 04:04:00 By-LQX

Quickly wake up another application , Need to know another apk The package name

//A The application wakes up some code logic 
Intent intent = new Intent(Intent.ACTION_MAIN);
/** Know the package life and target of the application to jump Activity*/
ComponentName componentName = new ComponentName("com.smartdevice.aidl", "com.smartdevice.aidl.MainActivity");
intent.setComponent(componentName);
//intent.putExtra("", "");// here Intent Pass value 
startActivity(intent);
原网站

版权声明
本文为[By-LQX]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207050402006186.html