Re: [android-developers] Set Android WIFI Ip address from my own application
By the way yout email get me hint, i m trying to resolve this thing. i've got a function which is : *wifiManaget.addNetwork(wifimanager object)* do you have any idea what this function do? 2010/12/30 Kostya Vasilyev kmans...@gmail.com You can change these settings from an application - just need right the permission (write_system_settings or some such). -- Kostya 30.12.2010 10:59, Faheem Khatri пишет: *public static final String WIFI_STATIC_DNS1* as you see these are the properties in which we can only get the value, we cant set the value. On Wed, Dec 29, 2010 at 7:47 PM, Kostya Vasilyev kmans...@gmail.comwrote: Faheem, See Settings.System: http://developer.android.com/reference/android/provider/Settings.System.html#WIFI_STATIC_DNS1 Starting with: public static final String WIFI_STATIC_DNS1 Since: API Level 1 If using static IP, the primary DNS's IP address. Example: 192.168.1.1 Constant Value: wifi_static_dns1 and up through public static final String WIFI_USE_STATIC_IP Since: API Level 1 Whether to use static IP and other static network attributes. Set to 1 for true and 0 for false. Constant Value: wifi_use_static_ip However, if past is of any indication, any of these can be moved to Settings.Secure in a future Android release (or not). -- Kostya 29.12.2010 17:34, Faheem Khatri пишет: Hi All, I wanna set android wifi ip address from my own application is there any way? i've post this question few months back didnt get any proper solution, so i m reposting this question. Regards, Faheem -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Set Android WIFI Ip address from my own application
but there is no function which takes argument to set the settings, as *public static final String WIFI_STATIC_DNS1* it only return the value , not set the value, i ll get syntax error if i try to set the values from this. 2010/12/30 Kostya Vasilyev kmans...@gmail.com You can change these settings from an application - just need right the permission (write_system_settings or some such). -- Kostya 30.12.2010 10:59, Faheem Khatri пишет: *public static final String WIFI_STATIC_DNS1* as you see these are the properties in which we can only get the value, we cant set the value. On Wed, Dec 29, 2010 at 7:47 PM, Kostya Vasilyev kmans...@gmail.comwrote: Faheem, See Settings.System: http://developer.android.com/reference/android/provider/Settings.System.html#WIFI_STATIC_DNS1 Starting with: public static final String WIFI_STATIC_DNS1 Since: API Level 1 If using static IP, the primary DNS's IP address. Example: 192.168.1.1 Constant Value: wifi_static_dns1 and up through public static final String WIFI_USE_STATIC_IP Since: API Level 1 Whether to use static IP and other static network attributes. Set to 1 for true and 0 for false. Constant Value: wifi_use_static_ip However, if past is of any indication, any of these can be moved to Settings.Secure in a future Android release (or not). -- Kostya 29.12.2010 17:34, Faheem Khatri пишет: Hi All, I wanna set android wifi ip address from my own application is there any way? i've post this question few months back didnt get any proper solution, so i m reposting this question. Regards, Faheem -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Set Android WIFI Ip address from my own application
You can change these settings from an application - just need right the permission (write_system_settings or some such). -- Kostya 30.12.2010 10:59, Faheem Khatri пишет: *public static final String WIFI_STATIC_DNS1* as you see these are the properties in which we can only get the value, we cant set the value. On Wed, Dec 29, 2010 at 7:47 PM, Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com wrote: Faheem, See Settings.System: http://developer.android.com/reference/android/provider/Settings.System.html#WIFI_STATIC_DNS1 Starting with: public static final String WIFI_STATIC_DNS1 Since: API Level 1 If using static IP, the primary DNS's IP address. Example: 192.168.1.1 Constant Value: wifi_static_dns1 and up through public static final String WIFI_USE_STATIC_IP Since: API Level 1 Whether to use static IP and other static network attributes. Set to 1 for true and 0 for false. Constant Value: wifi_use_static_ip However, if past is of any indication, any of these can be moved to Settings.Secure in a future Android release (or not). -- Kostya 29.12.2010 17:34, Faheem Khatri пишет: Hi All, I wanna set android wifi ip address from my own application is there any way? i've post this question few months back didnt get any proper solution, so i m reposting this question. Regards, Faheem -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com http://kmansoft.wordpress.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Set Android WIFI Ip address from my own application
Hi All, I wanna set android wifi ip address from my own application is there any way? i've post this question few months back didnt get any proper solution, so i m reposting this question. Regards, Faheem -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Set Android WIFI Ip address from my own application
Faheem, See Settings.System: http://developer.android.com/reference/android/provider/Settings.System.html#WIFI_STATIC_DNS1 Starting with: public static final String WIFI_STATIC_DNS1 Since: API Level 1 If using static IP, the primary DNS's IP address. Example: 192.168.1.1 Constant Value: wifi_static_dns1 and up through public static final String WIFI_USE_STATIC_IP Since: API Level 1 Whether to use static IP and other static network attributes. Set to 1 for true and 0 for false. Constant Value: wifi_use_static_ip However, if past is of any indication, any of these can be moved to Settings.Secure in a future Android release (or not). -- Kostya 29.12.2010 17:34, Faheem Khatri пишет: Hi All, I wanna set android wifi ip address from my own application is there any way? i've post this question few months back didnt get any proper solution, so i m reposting this question. Regards, Faheem -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Set Android WIFI Ip address from my own application
*public static final String WIFI_STATIC_DNS1* as you see these are the properties in which we can only get the value, we cant set the value. On Wed, Dec 29, 2010 at 7:47 PM, Kostya Vasilyev kmans...@gmail.com wrote: Faheem, See Settings.System: http://developer.android.com/reference/android/provider/Settings.System.html#WIFI_STATIC_DNS1 Starting with: public static final String WIFI_STATIC_DNS1 Since: API Level 1 If using static IP, the primary DNS's IP address. Example: 192.168.1.1 Constant Value: wifi_static_dns1 and up through public static final String WIFI_USE_STATIC_IP Since: API Level 1 Whether to use static IP and other static network attributes. Set to 1 for true and 0 for false. Constant Value: wifi_use_static_ip However, if past is of any indication, any of these can be moved to Settings.Secure in a future Android release (or not). -- Kostya 29.12.2010 17:34, Faheem Khatri пишет: Hi All, I wanna set android wifi ip address from my own application is there any way? i've post this question few months back didnt get any proper solution, so i m reposting this question. Regards, Faheem -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en