title: Android Application Starts with wrong activity
body: <p>My Application has 3 activities (MainActivity,SampleActivity,TempActivity) and Application have to start from MainActivity because i register it in AndroidManifest as</p>
  
  <pre><code>    &lt;activity
          android:name=".MainActivity"
          android:configChanges="keyboardHidden|orientation"
          android:label="@string/app_name"
          android:launchMode="singleTask"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" &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;
  
      &lt;activity
          android:name=".TempActivity"
          android:configChanges="keyboardHidden|orientation"
          android:label="@string/app_name"
          android:launchMode="singleTask"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" &gt;
      &lt;/activity&gt;
  
      &lt;activity
          android:name=".SampleActivity"
          android:configChanges="keyboardHidden|orientation"
          android:label="@string/app_name"
          android:launchMode="singleTask"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"&gt;
       &lt;/activity&gt;
  </code></pre>
  
  <p>when i switch from MainActivity to TempActivity and come back to MainActivity and then close the Application then often it starts from TempActivity. <br> after this wrong behavior when ever i start my application it starts from Wrong Activity(TempActivity). <br> Please help me in this problem</p>