4

When ever a dialog comes on a scene in andengine the update method stops unless the dialog is dismissed. All I want to do is that whenever a dialog comes the update method should not be stopped it should be running as normal. Please provide a solution for it.

Jawad Amjad
  • 2,532
  • 2
  • 29
  • 59

1 Answers1

4

When a Dialog is displayed, onPause() is called on the activity. You can try calling onResume() on your game activity when the Dialog is created.

In GLES1 version (and maybe in GLES2 too somewhere) AndEngine actively prevents you from resuming the game unless you have focus. You could probably create your own version of BaseGameActivity which does not check for this condition.

JohnEye
  • 6,436
  • 4
  • 41
  • 67