NetworkUtils is not part of the Android SDK. You are welcome to write your own firmware apps that use it, however.
On Mon, May 28, 2012 at 12:44 AM, Sud <[email protected]> wrote: > 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 [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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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

