我试图从我的应用程序启动另一个应用程序,特别是splashtop远程流式传输应用程序。这是我到目前为止有:启动外部应用程序
string packageName = "com.splashtop.remote.FirstActivity";
Intent splash = new Intent();
splash.SetAction(packageName);
StartActivity(splash);
在我的Android清单:
<activity android:name="com.splashtop.remote.FirstActivity" android:label="@string/app_name">
<intent-filter>
<action android:name="com.splashtop.remote.FirstActivity" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
而且我得到了应用程序的输出此错误和应用程序forcecloses:
Didn't find class "com.splashtop.remote.FirstActivity" on path: /data/app/roughapp.roughapp-1.apk
那么如何我是不是改变了它所指的路径
on path: /data/app/roughapp.roughapp-1.apk
你为什么要在Android Manifest中声明活动?这是告诉Android系统“我写了这个代码,它会在我的包” – panini
与voyboy的好图片 – Ogen
哈哈感谢之人 – user3163793