From one of my apps, I'm trying to launch another. I want to use an explicit intent.
ComponentName cn = new ComponentName("com.myOtherApp", "OtherAppActivity");
Intent intent = new Intent();
intent.setComponent(cn);
context.startActivity(intent);
When I run that code, however, it asks if I've declared that activity in my manifest. However, when I put the following into the manifest, I get the same error:
<activity android:name="com.myOtherApp.OtherAppActivity">
</activity>
What am I doing wrong?
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…