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 <[email protected]>

>
> 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 <[email protected]>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 [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]<android-developers%[email protected]>
>> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to