android Programming Glossary: loopmax
Android 2.3 wifi hotspot API http://stackoverflow.com/questions/7048922/android-2-3-wifi-hotspot-api method2.invoke wifi catch Exception e Log.e WIFI_SERVICE e.getMessage toastText ERROR e.getMessage if enabled int loopMax 10 while loopMax 0 getWifiAPState WIFI_AP_STATE_DISABLING getWifiAPState WIFI_AP_STATE_ENABLED getWifiAPState WIFI_AP_STATE_FAILED.. wifi catch Exception e Log.e WIFI_SERVICE e.getMessage toastText ERROR e.getMessage if enabled int loopMax 10 while loopMax 0 getWifiAPState WIFI_AP_STATE_DISABLING getWifiAPState WIFI_AP_STATE_ENABLED getWifiAPState WIFI_AP_STATE_FAILED try.. getWifiAPState WIFI_AP_STATE_ENABLED getWifiAPState WIFI_AP_STATE_FAILED try Thread.sleep 500 loopMax catch Exception e wifi.setWifiEnabled true else if enabled int loopMax 10 while loopMax 0 getWifiAPState WIFI_AP_STATE_ENABLING..
|