i need to have the application with two or more styles (i have now just two, but in the future will be at least ten), i have the style part resolved. but the thing is the manifest, i need to launch the same activity, but with a different theme associated.
<activity
android:name=".StartActivity"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@style/DefaultTheme"
android:windowSoftInputMode="adjustPan">
<intent-filter android:icon="@drawable/ic_launcher">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".StartActivity"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name_mc"
android:screenOrientation="portrait"
android:theme="@style/MCTheme"
android:windowSoftInputMode="adjustPan">
<intent-filter android:icon="@drawable/ic_launcher">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
well the thing is that i get a duplicated error. Ok, i get that i can't have the same activity twice (at least that is the exception i get).
is there a workaround for this? i do need the two launchers.
regards.