-1

I want to open two activity with the same icon by the some of my app preference. Can any one tell me how to do that at runtime?

MysticMagicϡ
  • 28,593
  • 16
  • 73
  • 124
sachin
  • 29
  • 4

1 Answers1

1

You can't. You can only have one Activity with the required intent-filter:

<intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

What you could do is launch a splash screen, and then check your preferences in that. Depending on the prefs, you can then launch the appropriate activity.

Raghav Sood
  • 81,899
  • 22
  • 187
  • 195