title: Bring application to front after user clicks on home button
body: <p>My application is in <strong>running mode[foreground]</strong> and user clicks on home button, which puts application to <strong>background[and still running]</strong>. I have alarm functionality in my application which fires up. I want is when my alarm goes off i want to bring my background running application in foreground and from last state in which it was. </p>
  
  <pre><code>    &lt;application
              android:name="com.abc.android.state.management.MainEPGApp"
              android:icon="@drawable/icon"
              android:label="@string/app_name"
              android:largeHeap="true"
              android:logo="@drawable/app_logo" &gt;
              &lt;activity
                  android:name=".SplashScreen"
                  android:label="@string/app_name"
                  android:launchMode="singleTop"
                  android:screenOrientation="nosensor"
                  android:theme="@style/Theme.Sherlock" &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=".Starter"
                      android:configChanges="orientation|screenSize"
                      android:screenOrientation="behind"
                      android:launchMode="singleTop"
                      android:uiOptions="none"
                      android:windowSoftInputMode="adjustPan" /&gt;
  &lt;/application&gt;
  </code></pre>