暂时只是实现了跳转,问题还很多
https://github.com/Qihoo360/RePlugin
1.跟正文档走,给主工程和模块工程配置必须得依赖,project+app的build
2.导入模块:
RePlugin.install( Environment.getExternalStorageDirectory().getAbsolutePath()+"/repluginother.apk");
可以放主线程也可以放子线程,测试都可以成功
3.关于调转时候的参数
RePlugin.startActivity(MainActivity.this, RePlugin.createIntent("repluginother",
"com.yosemite.repluginother.MainActivity"));
对于这两个参数,需要在模块工程的manifest中application下配置
<meta-data
android:name="com.yosemite.repluginother"
android:value="repluginother"
>
问题:发现导出模块无效,好像还是只能跳入到子模块的首页?待续