两个独立工程apk之间的跳转,备注:两个Apk都已经安装过了!
在下面这个博客的基础上进行开发的!
https://blog.csdn.net/qq_41811438/article/details/103537447
使用Intent来进行的。我在Demo003这个工程中,写代码启动XListView这个apk。没有什么好说的了,直接附上源码示例:
public void OnTest(View view)
{
// tv_show.setText("Good Morning, teacher.");
ComponentName componetName = new ComponentName("me.maxwin","me.maxwin.XListViewActivity");
Intent intent = new Intent();
intent.setComponent(componetName);
startActivity(intent);
}
---- The End.