APP A 是隐藏的,设置了主题 android:theme="@android:style/Theme.Translucent.NoTitleBar",在 onResume() 里面 finish() 了。
APP A 接收到 APP B 销毁的广播,尝试了3种方式重新启动 APP B。
第一种,指定 APP B 的包名和 Action,两个 APP 同时报异常 ActivityNotFoundException: No Activity found to handle Intent
第二种,先启动 APP A 的一个 Activity,这这个 Activity里启动 APP B 的 Activity,会在 APP B 里报同样的错误(APP A 没有报错)
第三种,启动 APP B 的服务,在 APP B 的服务里启动 APP B 的 Activity,但服务起不来,两个 APP 同时报错 Not allowed to start service Intent {...} without permission app.custom.permission,其中“app.custom.permission”是在 APP A 中申明的,也添加了。