I'm developing a game in android with AndEngine, and the current biggest problem is when the phone is locked and unlocked again (about a minute or more in between) the game scene resets.
I did a lot of searching, and most suggest saving with functions that are called when the app is closed. I could do this, but it's a lot of saving. I do know, however, that this IS possible, since it is done in AndEngine examples. one peticularly noticable thing with AndEngine examples is when the phone is locked while the program is in the foreground, the screen turns on again. pressing power once more keeps the screen off until unlocked again, after witch the game is perfectly restored.
I scrolled trough the Manifest file and launcher source code, copied and pasted some stuff, but still no sucess. it seems that the solution is in the Manifest file, so here is the one of my program, including all modifications so far:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.andenginetest"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:configChanges="orientation|keyboard|keyboardHidden"
android:label="@string/title_activity_main" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
none of it is having any effect on the problem, even though it's suggested by many people. can someone tell me what I might be doing wrong? thanks in advance!