Thanks for the reply blink0km I was thinking the same that the command is not avalible in Tier 1 as I spent a long time looking trough the commands and help files before asking.
As you say the GetResumed() command is great for regaining focus if the app os sent to the background with the android menu button
but most Apps that are not built with AppGameKit do seem to send the App to the background with the back button as I believe Android itself wants to determine when to close the app which is what can cause OS error flags on some devices.
somebody called Naphier fixed this in Tier 2 with a simple modification to the AGKHelper.java file:
public static void ShowMessage( Activity act, String msg )
{
if("-1".equals(msg))
{
//send the activity to the background and save state
Log.i("AGK ShowMessage" , "Move task to back");
act.moveTaskToBack(true);
}
else
{
//original AGK code
RunnableMessage run = new RunnableMessage();
run.act = act;
run.msg = msg;
act.runOnUiThread( run );
}
}
Then in your AppGameKit code you can call ShowMessage("-1") when the back button is pressed to send the app to the background.
But I was hoping there was a way in Teir 1.