1 问题
在三星安卓8.1版本手机上,打开热点
WifiManager wifiManager = (WifiManager) getApplicationContext().getSystemService(Context.WIFI_SERVICE);wifiManager.startLocalOnlyHotspot(new WifiManager.LocalOnlyHotspotCallback() {@TargetApi(Build.VERSION_CODES.O)@Overridepublic void onStarted(WifiManager.LocalOnlyHotspotReservation reservation) {super.onStarted(reservation);mReservation = reservation;WifiConfiguration wifiConfiguration = reservation.getWifiConfiguration();ssid = wifiConfiguration.SSID;mHandler.obtainMessage(2018, wifiConfiguration).sendToTarget();}@Overridepublic void onStopped() {super.onStopped();}@Overridepublic void onFailed(int reas