1. First update glbasic to SDK 4.0 (not sure its required by this issue throught, my projects and calls is now allways uses that SDK instead of SDK 2.2):
http://www.glbasic.com/forum/index.php?topic=9341.0Sadly the above post require you have 100+ post, so IAN, its time to move this to a none bonus section. Im thinks
Code Snippets is the best forum?
2. Uses
ANDROIDEXTRAS newest version by FiveSprite and additions by me (inapp shos for OUYA, GameController supports, even for the menu button):
http://www.glbasic.com/forum/index.php?topic=9166.0There is included a eailer ANDROIDEXTRAS version in the SDK upgrade as well, so its can been tested trought.
with above, you can also fix the dreadfull orientation issue on some devices, if "sensor" not used.
3. Today im doing do a new update today, so
SDLActivity.java can been detected, so the user is on the menu, then back button should quit the app (which is a NORMAL behaiver on Android). If the user is on the game, then back buttons would do nothing. So to pause the game, you should uses the MENU button instead, which is more correct way. That can allready been checked with ANDROIDEXTRAS (using the OUYA game controller code, dispite menu can been detected without using OUYA).
PS. Etc you could also tryout ANDROIDEXTRAS with the currect glbasic SDK (which uses v2.2), howover the manifest might require changes.