TrafficManager

public class TrafficManager

3G, WIFIの通信量を記録する。 作成するアプリはWifiを計測することがメインであるが、将来的に有料版でMobile通信もチェックできるようにするので

Author:someone

Methods

exec

public void exec(NetworkStatus status)

通信量を記録。

Parameters:
  • status

getInstance

public static synchronized TrafficManager getInstance(Context context)

getMobileTrafficSize

public double getMobileTrafficSize()

getTotalTrafficSize

public long getTotalTrafficSize(NetworkStatus status)

hasCurrrentTraffic

public boolean hasCurrrentTraffic()

upgradeTrafficdataTable

public void upgradeTrafficdataTable()