アプリAとアプリBがあります。
次のように、A からのインテントで B を起動します。
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setClassName("com.applicationB", "com.applicationB.MainActivity");
intent.putExtra(EXTRA_NAME,"name");
startActivity(intent);
ユーザーがアプリケーションを閉じると、AI はアプリケーション B も閉じます。アプリ B には JNI があり、exec()
コマンドを使用します。
試してみましandroid:sharedUserId
たが、アプリ A が上記のコードで B を起動しようとすると、このエラーが発生しました。
Error running exec(). Command: [....] Working Directory: null Environment: (not null, it shows all the environment.
何か案は?