Sunday, May 27, 2012

[android-developers] Re: Using NetworkUtils to add a new route

Hi,
    I am new to android and i am making an app. But for this I need to find Dns servers ip and default gateway for this, so i found to do it using networkutils class, but that class is not there in my sdk.
So how to implement that class in app. Is there any other way to find these dns severs and default gateway?
 
Thanks
Sud

On Thursday, 11 November 2010 22:42:33 UTC+5:30, Mauricio Andrada wrote:
Hi,

We implemented a system applciation that must add a route to one of
the existing network interfaces in the phone. We tried to use
NetworkUtils.addHostRoute() but we get "Operation Not Permited".
We see that MobileDataStateTracker uses it; from our understanding the
tracker is running within ConnectivityService which runs in the
SystemServer.
We also believe that SystemServer does not run as root.
We'd like to know what we have to do to make our system app able to
call addHostRoute().

Thanks and regards,

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate