There is not a good way to find this info.  It was not thought important
for app development.  In ICS there are hidden methods that give this info,
but they are not public and may change.  A future version of android should
make them public.

R

On Fri, May 25, 2012 at 3:24 AM, loka sudharsan
<[email protected]>wrote:

> Hi,
>   I just started learning apk and wanted to do an app for android. In
> my app,  i want the dns server, ip address, and default gateway. But
> as i searched, i find in many places to use the networkutils.rundhcp()
> But, there is no networkutils in my sdk. Can u please tell me, how to
> add the networkutils.java file and from where? Is there any other way
> to find the dns server address etc ?
>
> Thanks and regards
> Sud
>
> --
> 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
>

-- 
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