Can I launch different Activities on startup depending on user preferences?
<p>I have a ListActivity and a MapActivity.  I would like to launch either one of these activities on application startup that has been chosen by the user in a preferences window.</p>

<p>So far the only way I see to launch an activity on application startup is to specify it in the application manifest file using...</p>

<pre><code>  &lt;activity android:name=".MyActiivty"
        android:label="@string/app_name"&gt;
     &lt;intent-filter&gt;
        &lt;action android:name="android.intent.action.MAIN" /&gt;
        &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
     &lt;/intent-filter&gt;
  &lt;/activity&gt;
</code></pre>

<p>I am thinking I might have to start an activity that does nothing but looks at the user preferences and then launches either the ListActivity or MapActivity.  Seems like a waste to have an activity do nothing but launch another activity.  In my research I have not found any solution to this problem. Any suggestions would be greatly appreciated.</p>

<p>Thanks &amp; Regards,
Dave</p>
