Hi, I just downloaded gideros today and I made a test game.
I installed the game.apk into my phone, but when I ran the game I couldn't close it. I can close the giderosandroidplayer just fine with the "back" button, but I couldn't close my installed game, which is quite annoying.
The only way to close it was to return to main menu, and I noticed that it automatically closed the game. In other games I played the main menu button won't close the game, just pause it and you can resume the game without restarting from the splash screen.
Also, when running the game on eclipse on emulator I got errors: "called unimplemented opengl es api" (it's flooding the logcat window)
Please help! thanks in advance
Comments
Hardware>>Keyboard
And for the resuming and pausing the application check:
Hardware>>Application Life cycle demo
http://www.giderosmobile.com/forum/discussion/1491/application-exit-button#Item_8
Hope it will be helpfull.
So I just checked the demo, particularly on Hardware>Keyboard...
So to terminate the application, addkeylistener to back button, and then call application:exit() ?
From the other thread I read hard exit isn't good? http://www.giderosmobile.com/forum/discussion/281/how-to-terminate-an-application-
Okay, so if you can't programatically kill an application, how do you.. at least stop it? So you can do something else with your phone. Like in other applications, the back button will automatically stop any activity, which didn't work at all for my game.
Also, I tried the demo Hardware > Keyboard and ApplicationLifeCycle on emulator and both won't install/load. The demo files don't work?
When the back button is pressed, dispatch an event: Event.APPLICATION_SUSPEND
App closed, I'm happy.
Is this a good solution?
Never thought dispatching events could work that way, nice