Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ConnectivityManager connectivityManager = (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);
- NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();
- if (networkInfo != null){
- Log.d(TAG,"networkInfo : " +networkInfo.getExtraInfo());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement