Skip to content Skip to sidebar Skip to footer

Cannot Launch Activity In Android Library Module

To my Android app project, I added a module which contains an activity named 'SampleDataMenuActivity'. There is nothing special to this activity - it's added using the 'New Module'

Solution 1:

I found the mistake, and perhaps I should remove the question. But as it was upvoted, somone else might be interested in this answer:

The manifest should state:

<activityandroid:name="com.sample.sampledata.SampleDataMenuActivity" ><intent-filter><actionandroid:name="com.sample.sampledata.SampleDataMenuActivity" /><categoryandroid:name="android.intent.category.DEFAULT" /></intent-filter></activity>

Post a Comment for "Cannot Launch Activity In Android Library Module"