¡@

Home 

2014/10/16 ¤W¤È 08:09:49

android Programming Glossary: android.provider.settings.system.putstring

How to configue static IP, netmask ,gateway programmatically on Android 3.x or 4.x

http://stackoverflow.com/questions/10278461/how-to-configue-static-ip-netmask-gateway-programmatically-on-android-3-x-or-4

no luck on higher API level. For example I put the setting android.provider.Settings.System.putString getContentResolver android.provider.Settings.System.WIFI_USE_STATIC_IP.. android.provider.Settings.System.WIFI_USE_STATIC_IP 1 android.provider.Settings.System.putString getContentResolver android.provider.Settings.System.WIFI_STATIC_IP.. 192.168.0.100 android.provider.Settings.System.putString getContentResolver android.provider.Settings.System.WIFI_STATIC_NETMASK..

Set Android IP,DNS,GATEWAY setting programatically

http://stackoverflow.com/questions/4106502/set-android-ip-dns-gateway-setting-programatically

to actually change the setting using the following code android.provider.Settings.System.putString getContentResolver android.provider.Settings.System.WIFI_USE_STATIC_IP.. android.provider.Settings.System.WIFI_USE_STATIC_IP 0 android.provider.Settings.System.putString getContentResolver android.provider.Settings.System.WIFI_STATIC_DNS1.. 192.168.0.2 android.provider.Settings.System.putString getContentResolver android.provider.Settings.System.WIFI_STATIC_DNS2..

How to configue static IP, netmask ,gateway programmatically on Android 3.x or 4.x

http://stackoverflow.com/questions/10278461/how-to-configue-static-ip-netmask-gateway-programmatically-on-android-3-x-or-4

application It work until Android 2.3. However there is no luck on higher API level. For example I put the setting android.provider.Settings.System.putString getContentResolver android.provider.Settings.System.WIFI_USE_STATIC_IP 1 android.provider.Settings.System.putString getContentResolver.. android.provider.Settings.System.putString getContentResolver android.provider.Settings.System.WIFI_USE_STATIC_IP 1 android.provider.Settings.System.putString getContentResolver android.provider.Settings.System.WIFI_STATIC_IP 192.168.0.100 android.provider.Settings.System.putString.. getContentResolver android.provider.Settings.System.WIFI_STATIC_IP 192.168.0.100 android.provider.Settings.System.putString getContentResolver android.provider.Settings.System.WIFI_STATIC_NETMASK 255.255.255.0 android.provider.Settings.System.putString..

Set Android IP,DNS,GATEWAY setting programatically

http://stackoverflow.com/questions/4106502/set-android-ip-dns-gateway-setting-programatically

uses permission Then you need to actually change the setting using the following code android.provider.Settings.System.putString getContentResolver android.provider.Settings.System.WIFI_USE_STATIC_IP 0 android.provider.Settings.System.putString getContentResolver.. android.provider.Settings.System.putString getContentResolver android.provider.Settings.System.WIFI_USE_STATIC_IP 0 android.provider.Settings.System.putString getContentResolver android.provider.Settings.System.WIFI_STATIC_DNS1 192.168.0.2 android.provider.Settings.System.putString.. getContentResolver android.provider.Settings.System.WIFI_STATIC_DNS1 192.168.0.2 android.provider.Settings.System.putString getContentResolver android.provider.Settings.System.WIFI_STATIC_DNS2 192.168.0.3 android.provider.Settings.System.putString..