get Total Rx Bytes from TrafficStats - Android android.net

Android examples for android.net:TrafficStats

Description

get Total Rx Bytes from TrafficStats

Demo Code


//package com.java2s;
import android.net.TrafficStats;

public class Main {
    public static long getTotalRxBytes() {

        return TrafficStats.getTotalRxBytes();
    }/*  ww w .  j a va  2  s . co m*/
}

Related Tutorials