eclipse打包成apk后出现的错误(please open wifi for debuging )

来源:互联网 发布:mac如何打开msg文件 编辑:程序博客网 时间:2024/06/11 07:42

// Check the wifi is opened when the native is debug.

// if(nativeIsDebug())

// {

// getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON, WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

// if(!isNetworkConnected())

// {

// AlertDialog.Builder builder=new AlertDialog.Builder(this);

// builder.setTitle("Warning");

// builder.setMessage("Please open WIFI fordebuging...");

// builder.setPositiveButton("OK",new DialogInterface.OnClickListener() {

//

// @Override

// public void onClick(DialogInterface dialog,int which) {

// startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));

// finish();

// System.exit(0);

// }

// });

//

// builder.setNegativeButton("Cancel", null);

// builder.setCancelable(true);

// builder.show();

// }

// }

0 0