Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network monitoring #29

Open
DanielPollithy opened this issue Jan 19, 2018 · 0 comments
Open

Network monitoring #29

DanielPollithy opened this issue Jan 19, 2018 · 0 comments
Assignees

Comments

@DanielPollithy
Copy link
Owner

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...

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

No branches or pull requests

2 participants