I removed the icons from the screen but still failed. Eventually I
figured out that the error was more explanatory that I thought, and
realized that the onBackPressed() on Android is called from the main
thread and not the GLThread, which lead me to
playn.tests.android.TestsGameActivity which handles exactly that case!
on the activity:
@Override public void onBackPressed () {
if (!game.onHardwardBack()) super.onBackPressed();
}
on the game:
public boolean onHardwardBack () {
if (currentTest == null) return false;
displayMenuLater(); // we're not currently on the GL thread
return true;
}
I did it that way and the error is gone
thanks!
El mié., 13 de feb. de 2019 a la(s) 08:23, Guillermo Rodriguez Garcia
(
guille.r...@gmail.com) escribió:
> --
>
> ---
> You received this message because you are subscribed to the Google Groups "PlayN" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
playn+un...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.