android 开启多进程

在清单文件中指定android:process属性

<activity
    ...
    android:process=":remote"/> // 私有进程
<activity
    ...
    android:process="com.ryg.chapter_2.remote"/> // 全局进程

查看进程信息

adb shell ps
adb shell ps | grep com.ryg.chapter_2

猜你喜欢

转载自blog.csdn.net/APTX8899/article/details/88673785