phone no longer sleeps while emulator is running.
This commit is contained in:
parent
bdfdfc138a
commit
6cce72e18a
|
@ -52,7 +52,7 @@ import com.example.newdc.JNIdc;
|
||||||
class GL2JNIView extends GLSurfaceView
|
class GL2JNIView extends GLSurfaceView
|
||||||
{
|
{
|
||||||
private static String fileName;
|
private static String fileName;
|
||||||
//private AudioThread audioThread;
|
//private AudioThread audioThread;
|
||||||
private EmuThread ethd = new EmuThread();
|
private EmuThread ethd = new EmuThread();
|
||||||
|
|
||||||
private static final boolean DEBUG = false;
|
private static final boolean DEBUG = false;
|
||||||
|
@ -121,7 +121,7 @@ class GL2JNIView extends GLSurfaceView
|
||||||
public GL2JNIView(Context context,String newFileName,boolean translucent,int depth,int stencil)
|
public GL2JNIView(Context context,String newFileName,boolean translucent,int depth,int stencil)
|
||||||
{
|
{
|
||||||
super(context);
|
super(context);
|
||||||
|
setKeepScreenOn(true);
|
||||||
vib=(Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
|
vib=(Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
|
||||||
|
|
||||||
// This is the game we are going to run
|
// This is the game we are going to run
|
||||||
|
|
Loading…
Reference in New Issue