调用其他应用中的activity
app1 org.freedom.app1.HelloActivity
app2 org.freedom.app2.TestActivity
如何在app2的TestActivity调用app1的HelloActivity呢?
首先在app1的 AndroidManifest.xml中 HelloActivity声明中加入如下内容:
<intent-filter>
<action android:name=""/>
</intent-filter>
然后就可以调用了
TestActivity 中调用代码如下:
Intent Intent = new Intent();
intent.setClassName("org.freedom.app1", "org.freedom.app1.HelloActivity");
startActivity(intent);