Sorry, > But, when running this piece of code, in Android Screen appear that > error "Sorry application (software) is not responding" and in LogCat > no info about this. When debugging, an error appear "Source not > found". What is the correct usage of this method?
i mean, when i try to run the first piece of code...the last one that i'm using is ok...i'm trying to discover a new way to do that. Thanks Breno On Nov 7, 10:37 am, Breno <[EMAIL PROTECTED]> wrote: > Hey all, > > reading google documentation about NetworkInfo class, i found the > method > > public NetworkInfo getNetworkInfo(int networkType) ; > > This will be very usefull for me, to get info about the network. > > but there is no documentation about this method. I'm trying to get > the network info, doing > > NetworkInfo netInfo = new > NetworkInfo(ConnectivityManager.TYPE_MOBILE); > > ConnectivityManager connManager = > (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE); > > netInfo = connManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE); > > Actually, I'm capable to get those information usign > > String extra_info; > extra_info = "" + > intent.getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO); > > But, when running this piece of code, in Android Screen appear that > error "Sorry application (software) is not responding" and in LogCat > no info about this. When debugging, an error appear "Source not > found". What is the correct usage of this method? > > thanks a lot > > Breno --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---