open WIFI is not necessary for runtime

This commit is contained in:
honghui 2014-09-11 17:04:26 +08:00
parent 4acb853fc1
commit d5a8904fbb
1 changed files with 4 additions and 2 deletions

View File

@ -79,7 +79,7 @@ public class AppActivity extends Cocos2dxActivity{
{ {
AlertDialog.Builder builder=new AlertDialog.Builder(this); AlertDialog.Builder builder=new AlertDialog.Builder(this);
builder.setTitle("Warning"); builder.setTitle("Warning");
builder.setMessage("Open Wifi for debuging..."); builder.setMessage("Please open WIFI for debuging...");
builder.setPositiveButton("OK",new DialogInterface.OnClickListener() { builder.setPositiveButton("OK",new DialogInterface.OnClickListener() {
@Override @Override
@ -89,7 +89,9 @@ public class AppActivity extends Cocos2dxActivity{
System.exit(0); System.exit(0);
} }
}); });
builder.setCancelable(false);
builder.setNegativeButton("Cancel", null);
builder.setCancelable(true);
builder.show(); builder.show();
} }
} }