我的应用程序处于运行模式[前景],用户点击主页按钮,这将应用程序置于后台[并仍在运行].我的应用程序中有警报功能,它会启动.我想要的是当我的闹钟响起时,我希望将我的后台运行应用程序放在前台并从最后状态开始.
<application
android:name="nl.ziggo.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>
Run Code Online (Sandbox Code Playgroud) android ×1