My application is in running mode[foreground] and user clicks on home button, which puts application to background[and still running]. 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.
<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" > <activity android:name=".SplashScreen" android:label="@string/app_name" android:launchMode="singleTop" android:screenOrientation="nosensor" android:theme="@style/Theme.Sherlock" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".Starter" android:configChanges="orientation|screenSize" android:screenOrientation="behind" android:launchMode="singleTop" android:uiOptions="none" android:windowSoftInputMode="adjustPan" /> </application>