I have two apps on an Android device:
My app, called "app1", and a separate app called "app2" with no uses-permission element set.
I am merely trying to invoke app2's activity via app1.
When I try from adb, the activity launches just fine as in:
am start -n com.test.app2/.Special
Is there a way to code an app in Eclipse to do something similar to am?
I've tried coding app1 to call my own .class file which starts an intent with the same detail, as in:
Intent app1intent = new intent();
app1intent.setComponent(new ComponentName("com.test.app2","com.test.app2.Special"));
startActivity(app1intent);
But when I try that all I see is the same white screen from where app1 was launched.
So instead, I figured I would just call app2's .class file directly via the manifest file.
Here is the AndroidManifest.xml from app1.
I suspect I am missing some additional files as part of my package, as this manifest is merely based on one of the sample apps that came with Eclipse, but could use some help.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.test.app1"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="16" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.test.app2.Special"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>