I'm trying to write an App that starts the Android STK Activity as follows:
Intent intent = new Intent();
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
intent.setAction(Intent.ACTION_MAIN);
intent.setComponent(new ComponentName("com.android.stk", "com.android.stk.StkLauncherActivity"));
startActivity(intent);
I keep getting the following error:
android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.stk/com.android.stk.StkLauncherActivity}; have you declared this activity in your AndroidManifest.xml?
I've declared the following in my manifest:
<activity android:name="com.android.stk.StkLauncherActivity"/>