Better detection of graphics mode on Android.
This fixes crash when resuming app after sleep on HTC One X (EglException: MakeCurrent failed with error 12297).