There seems to be a problem with the way jmonkey handles things. prich, Good job with the patch but still needs more work. I say that because of the fact that the AndroidHarness doesn’t handle the changes with phone states. If I turn the phone off, the music still plays.
This is what it shows before I turn it off.
02-12 20:20:33.374: D/PhoneWindow(6247): couldn’t save which view has focus because the focused view com.jme3.input.android.AndroidInput@40552df8 has no id.
02-12 20:20:33.634: I/AndroidHarness(6247): onPause
02-12 20:20:33.644: I/AndroidHarness(6247): onStop
02-12 20:20:33.644: I/AndroidHarness(6247): onDestroy
The AndroidHarness has to pause everything, but it goes on to destroy everything. Then when I turn it on and return to my game
02-12 20:20:36.187: I/AndroidHarness(6247): onStart
02-12 20:20:36.197: I/AndroidHarness(6247): onResume
the music replays and the graphics reset. Huge problem, especially if some one calls.
Thats a huge no no. On other engines I’ve seen that when a phone changes states, the graphics pause along with the music. Some how the AndroidHarness has to handle this better.
Just wanted to throw in my two cents.