我已经应用A和应用B从另一个应用程序关闭应用
我以这种方式推出B带从A意图:
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setClassName("com.applicationB", "com.applicationB.MainActivity");
intent.putExtra(EXTRA_NAME,"name");
startActivity(intent);
当用户关闭应用程序。我想申请B到也关闭。应用程序B具有JNI并使用exec()
命令。
我试过android:sharedUserId
但是当应用程序A试图与上面的代码推出B I得到这个错误:
Error running exec(). Command: [....] Working Directory: null Environment: (not null, it shows all the environment.
任何想法?