2.X: ContentResolver ctRes = mContext.getContentResolver(); Settings.System.putInt(ctRes,Settings.System.WIFI_USE_STATIC_IP, 1); Settings.System.putString(ctRes,Settings.System.WIFI_STATIC_IP, "192.168.1.44"); 3.X/4.X(亲测4.4可用): public boolean setStaticIp(Strin…

2018年11月8日 0条评论 12点热度 阅读全文