80,351
社区成员
发帖
与我相关
我的任务
分享
//1为开启,0为关闭
Settings.System.putInt(mContext.getContentResolver(),Settings.System.AIRPLANE_MODE_ON, enabling ? 1 : 0);
//这段代码可以跳转到打开飞行模式那一个页面,看你用的上不
Intent mIntent = new Intent("/");
ComponentName comp = new ComponentName("com.android.settings",
"com.android.settings.WirelessSettings");
mIntent.setComponent(comp);
mIntent.setAction("<span class=\"hilite\">android</span>.intent.action.VIEW");
startActivity(mIntent);