VVarrior
Member
- Joined
- May 18, 2010
- Messages
- 61
- Reaction score
- 13
I compiled OTClient for Android. It even works. I can login, connect, play etc. But when I minimize the client (for example by pressing Home button or holding Menu button and selecting other app from Recently list) and after this I go back to the OTClient, the game screen is black.
Before:
After back to the app:
I tried to do some changes in AndroidManifest.xml like adding screenSize to android:configChanges, setting android:launchMode to singleInstance or removing android:screenOrientation, but it doesn't help.
Here is full log from logcat.
I suppose the problem can occur at one of MainActivity#onPause or MainActivity#onResume OR NativeSurfaceView#surfaceDestroyed (Java side code).
I was also trying to prevent destroying SurfaceView, creating it only once or removing nativePause() instruction from MainActivity#onPause, but it changes nothing.
Any idea how to solve the problem?
Before:
After back to the app:
I tried to do some changes in AndroidManifest.xml like adding screenSize to android:configChanges, setting android:launchMode to singleInstance or removing android:screenOrientation, but it doesn't help.
Here is full log from logcat.
I suppose the problem can occur at one of MainActivity#onPause or MainActivity#onResume OR NativeSurfaceView#surfaceDestroyed (Java side code).
I was also trying to prevent destroying SurfaceView, creating it only once or removing nativePause() instruction from MainActivity#onPause, but it changes nothing.
Any idea how to solve the problem?