Android Multiple Activity Declaration In Manifest
Solution 1:
The labels for your FacebookLogin and TwitterLogin appear to be missing an '@' - change them to android:label="@string/app_name"
Solution 2:
There's no such thing as a "subactvity". Just because you call one activity from another doesn't mean it's a "subactivity".
You can't nest activity tags in the manifest and you'd probably get a compile error if you tried.
in manifest you can set only one activity in launcher tag okay android does support multiple launcher activity.
Solution 3:
The manifest you posted looked fine.
But regarding your comment about the error message "Have you declared this activity in AndroidManifest.xml?", you need to check carefully the package and class name of the Activity
you are trying to launch, and make sure that it matches the <activity android:name>
you have written in the manifest.
All the info you need should be in the error message.
Solution 4:
Don't nest activity declarations, just have them all as elements in your application element:
<manifest ...
<application ...
<activity ...
</activity>
<activity ...
</activity>
<activity ...
</activity>
</application>
</manifest>
The sample you posted here (indenting aside) looks fine.
Solution 5:
Maybe you have tested it already but just try declaring your activities with the full path (although you have already declared it in the package tag). So, instead of using
<activityandroid:name=".TwitterLogin" />
use
<activityandroid:name="com.examples.Kikin.TwitterLogin" />
Sometimes problems are caused because of that.
I know this is an old thread but Im having the same problem and in my case specifying full package name doesn
t help. Have you already found a solution? I`m really interested in knowing how to avoid this error.
Post a Comment for "Android Multiple Activity Declaration In Manifest"