I'm having a really odd problem that seems very unrelated. I'm trying to use intent filters to open an activity (as recc from other questions on SO) in my main application from an activity in a library I created. In the library activity I create/call the intent like so:
Intent i = new Intent("com.application.mainapplication.tagDetailActivity");
// sending data to new activity
i.putExtra("sub_category", subCats[(int)id]); //Serializable data
i.putExtra("Category", category.name);
startActivity(i);
If I comment the two i.putExtra's I get the following error:
Could not find Library.apk!
In my manifest for the main application I have:
<activity android:name=".tagDetailActivity">
<intent-filter >
<action android:name="com.tagsforlikes.tagsforlikes.tagDetailActivity" />
</intent-filter>
</activity>
I'm not really sure why putExtra's are causing this error. Am I creating the intent correctly? It doesn't look much different than starting a normal intent (read: not intentfilter) and I'm worried I'm creating it wrong.
UPDATE
I think there is some confusion. The activity I am trying to call is not the main activity of the main application. So for the application I have a Free/Pro version that both reference a library. In the free/pro version, the main activity creates an activity in the library which in turn must call an activity in the free/pro version again.