I have my application. It's working well. Now I developed a small addon which installs to system with hidden from launcher icon:
<activity android:name="GitHubSearch"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
I'm trying to launch this Activity using this answer: Android: Starting An Activity For A Different Third Party App, but my app fails with Exception - Activity not found.
final Intent i = new Intent("android.intent.action.MAIN");
i.setComponent(new ComponentName("com.example.me.module","com.example.me.module.MyActivity"));
startActivity(i);
I checked 10 times the package names and activity names, that I'm passing to intent. Everything is fine.
Where is I'am going wrong?