|
|
@@ -43,6 +43,7 @@ import android.os.Bundle;
|
|
|
|
|
|
import android.content.Intent;
|
|
|
import android.content.res.Configuration;
|
|
|
+import android.os.PowerManager;
|
|
|
import android.util.Log;
|
|
|
import android.view.Gravity;
|
|
|
import android.view.KeyEvent;
|
|
|
@@ -410,4 +411,12 @@ public class AppActivity extends Cocos2dxActivity {
|
|
|
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
|
startActivity(intent);
|
|
|
}
|
|
|
+
|
|
|
+ public void ssssd(){
|
|
|
+ PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
|
|
|
+ boolean screenOn = pm.isInteractive();
|
|
|
+ if(!screenOn){
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|