title: Launcher app and the home key not consistant
body: <p>I have been building a launcher app with many activities.  I want the home button to always bring the user back to the mainActivity, when the home key is pressed and they have my app set as the default launcher.  This works 90% of the time, but after some time the home key eventually stops working.. it registers the user's press but doesn't return them to the mainactivity any more.  What causes this has evaded me.. we have tried for months to recreate the bug with some consistency but to no avail.  We can't figure out what causes it to stop working..  below is my manifest.  i am wondering if i am missing some sort of flag or something.  </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.sapientnitro.lcinstore2"
      android:configChanges="keyboard|uiMode"
      android:versionCode="4"
      android:versionName="4.0" &gt;
  
  &lt;uses-sdk android:minSdkVersion="15" /&gt;
  
  &lt;uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /&gt;
  &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.CAMERA" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" /&gt;
  &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
  
  &lt;uses-feature android:name="android.hardware.camera" /&gt;
  
  &lt;application
      android:icon="@drawable/icon"
      android:label="@string/app_name" &gt;
      &lt;activity
          android:name=".activities.LCInStore2Activity"
          android:alwaysRetainTaskState="true"
          android:configChanges="orientation|keyboardHidden"
          android:label="@string/app_name"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;category android:name="android.intent.category.HOME" /&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.MainActivity"
          android:configChanges="keyboard|uiMode"
          android:label="Main"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.MAINACTIVITY" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.Authenticate"
          android:label="Authenticate"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.AUTHENTICATE" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.Settings"
          android:label="Settings"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.SETTINGS" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.CustomerHome"
          android:label="CustomerHome"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.CUSTOMERHOME" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.CustomWebView"
          android:label="CustomWebView"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.CUSTOMWEBVIEW" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.CustomCamera"
          android:label="CustomCamera"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.CUSTOMCAMERA" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.FavoritesCustomer"
          android:label="FavoritesCustomer"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.FAVORITESCUSTOMER" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.FavoritesAssociate"
          android:label="FavoritesAssociate"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.FAVORITESASSOCIATE" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.Browser"
          android:hardwareAccelerated="true"
          android:label="Browser"
          android:screenOrientation="landscape" &gt;
  
          &lt;!-- android:theme="@android:style/Theme.NoTitleBar.Fullscreen"&gt; --&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.BROWSER" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.VideoViewer"
          android:label="Video Viewer"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.VIDEOVIEWER" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.GalleryOneUp"
          android:label="GalleryOneUp"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.GALLERYONEUP" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.GalleryFourUp"
          android:label="GalleryFourUp"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.GALLERYFOURUP" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.GeneralRx"
          android:focusable="true"
          android:focusableInTouchMode="true"
          android:label="GeneralRx"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
          android:windowSoftInputMode="stateHidden" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.GeneralRX" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.SunglassRx"
          android:focusable="true"
          android:focusableInTouchMode="true"
          android:label="SunglassRx"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
          android:windowSoftInputMode="stateHidden" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.SunglassRX" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.ComputerRx"
          android:focusable="true"
          android:focusableInTouchMode="true"
          android:label="ComputerRx"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
          android:windowSoftInputMode="stateHidden" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.ComputerRX" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.NightGlassesRx"
          android:focusable="true"
          android:focusableInTouchMode="true"
          android:label="NightGlassesRx"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
          android:windowSoftInputMode="stateHidden" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.NightGlassesRX" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.ActiveRx"
          android:focusable="true"
          android:focusableInTouchMode="true"
          android:label="ActiveRx"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
          android:windowSoftInputMode="stateHidden" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.ActiveRX" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.SafetyRx"
          android:focusable="true"
          android:focusableInTouchMode="true"
          android:label="SafetyRx"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
          android:windowSoftInputMode="stateHidden" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.SafetyRx" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.ContactRx"
          android:focusable="true"
          android:focusableInTouchMode="true"
          android:label="ContactRx"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
          android:windowSoftInputMode="stateHidden" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.ContactRx" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.SettingsRx"
          android:focusable="true"
          android:focusableInTouchMode="true"
          android:label="SettingsRx"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
          android:windowSoftInputMode="stateHidden" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.SettingsRX" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
      &lt;receiver android:name=".SettingsReceiver" &gt;
      &lt;/receiver&gt;
  
      &lt;activity
          android:name=".activities.CEETraining"
          android:label="@string/title_activity_ceetraining"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.CeeTraining" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.BrandTraining"
          android:label="@string/title_activity_brand_training"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.BrandTraining" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.LensTraining"
          android:label="@string/title_activity_lens_training"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.LensTraining" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.MakeAbility"
          android:label="@string/title_activity_makeability"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.Makeability" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.MakeabilityResults"
          android:label="@string/title_activity_makeability_results"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.sapientnitro.lcinstore2.activities.Makeabilityresults" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>