这个问题在这里被问了3次,但没有回答。Phonegap Android应用程序重新启动而不是恢复
我在Android设备2.3.6上使用Phonegap 2.1(Galaxy SII) 我也在使用AdMob Phonegap插件。
那么问题是一样的其他人说:
- 当试图恢复通应用程序图标的应用程序重新启动,即使在内存it's
- 当通过直通任务管理器它通常恢复
我的主要活动
public class testApp extends DroidGap
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
super.setIntegerProperty("splashscreen", R.drawable.splash);
setIntegerProperty("loadUrlTimeoutValue", 60000);
super.loadUrl("file:///android_asset/www/index.html",5000);
}
}
的manifest.xml
<application android:icon="@drawable/icon" android:label="@string/app_name"
>
<activity android:name="testApp" android:label="@string/app_name"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
/>
</application>
感谢您对清单中的任何意见
可能重复[Phonegap Android应用程序重新启动而不是恢复,虽然它没有被操作系统杀死](http://stackoverflow.com/questions/10122449/phonegap-android-application-restarting-instead-of-resuming - 虽然没有) –