Skip to content

Network monitoring #29

Description

@DanielPollithy

The BillingServer.java contains the following code:

bucket = networkStatsManager.querySummaryForDevice(ConnectivityManager.TYPE_WIFI,
                                    "",
                                    Accountant.getInstance().getLastTime() * 1000,
                                    System.currentTimeMillis());
long bytes_received = bucket.getRxBytes();
long bytes_transmitted = bucket.getTxBytes();
total_bytes = bytes_received + bytes_transmitted;

But this query leads to the same "data usage" every interval. What I found on google actually reads as if it could be possible that measuring the data usage on a hotspot is quite impossible...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions