Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
142 views

How do I get the data usage of applications from adb logs?

I want to automate the apps which are running in background or in foreground and how much data the app is consuming. Where do I get this info in adb logs ? like if any keyword is there for network ...
PRIYANKA DHIVARE's user avatar
0 votes
1 answer
1k views

Data usage on flutter

So I am working on a flutter app for streaming, however it's data consumption seems crazy. Just to load the home screen with just thumbnails and titles, it consumes about 12.4 mb and if reloading that,...
Ngodiseni Netshifhefhe's user avatar
1 vote
0 answers
251 views

Restrict background data usage

We use the Android Management API to manage devices in kiosk mode. There is a single app running on the devices that communicates with one of our servers. We have been seeing massive increases in data ...
Johan Ferreira's user avatar
2 votes
0 answers
203 views

Android device and app-wise data usage tracking using NetworkstatsManager return incorrect data

I'm trying to monitor device and app-wise data usage at every 15min interval of time. I found that Android OS aggregating data usage every 2hr (Not mentioned in developer doc). Found aggregation time ...
Akshay Kumar S's user avatar
1 vote
1 answer
350 views

Starting Android VPN service that is not rooted anywhere

I am looking to replicate the Ookla Speedtest displaying of data usage per application via the Android VPN service. It appears they start a VPN service however they state that it is not routed through ...
Seb's user avatar
  • 31
0 votes
1 answer
392 views

null bucket in NetworkStats.Bucket (querySummaryForDevice) Android

This is my code Calendar startCalendar; Calendar stopCalendar; startCalendar= Calendar.getInstance(); stopCalendar=Calendar.getInstance(); ...
Sreejith N S's user avatar
1 vote
0 answers
201 views

App not loading data with WiFi connection

Many of the app users are complaining on playstore recently that our app is not working with Wi-Fi, and works perfectly with cellular data. As a developer I tried with few devices and different Wi-Fi ...
deepThought's user avatar
0 votes
0 answers
1k views

Permission to use mobile data on android application

i have made an update to my app present in playstore. my problem is that after publishing the update, on some phones(like mine "xiaomi Poco F1") when i installed the app, data usage ...
user3710293's user avatar
3 votes
0 answers
1k views

How to show daily total internet data usage by android programmatically?

I want to show the user how much internet data he consumed from 12am of that day till he checks, like the Datally app by google. I know that we can see the total data usage after last reboot using ...
Md Rasel Hossain's user avatar
1 vote
0 answers
523 views

How to get mobile data usage of current month without monitoring it periodically using API 22 or less?

I need to know how much mobile data the device has used since the start of the current month, I know how to do it monitoring the device, but there are two problems with this: 1 - The device I'm ...
Ricardo A.'s user avatar
6 votes
3 answers
2k views

Get mobile data usage in Android 10

I'm trying to make a network usage monitor app, which shows mobile data usage history to the user. For this I'm using Usage access to get accurate data usage stats from NetworkStatsManager. But this ...
nisargjhaveri's user avatar
1 vote
0 answers
56 views

How to get data usages of application in lower versions of android?

I'm building an application which shows the data-usage and usage-time of applications by using telephonic service. But I'm unable to get this data in pre-marshmallow devices. I have tried the ...
IncipientInfo's user avatar
0 votes
0 answers
1k views

ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.DATA_USAGE_SETTINGS }

In my app, I am trying to use Android's Settings.ACTION_DATA_USAGE_SETTINGS intent to open the device's Data usage screen. The documentation for Settings.ACTION_DATA_USAGE_SETTINGS says: Activity ...
Boycott A.I.'s user avatar
  • 18.8k
0 votes
0 answers
305 views

How to get data(mobile and wifi) usage of each application in android?

How to get data (mobile and wifi) usage of each application in android? Hello guys, I want to know that how much data (mobile and wifi) used by each application. Actually I need a solution which ...
Haresh Solanki's user avatar
4 votes
0 answers
599 views

NetworkStatsManager: querySummary returns the same data for different start time

I'm trying to use NetworkStatsManager class to retrieve the data usage of my app. I want to track it once in an hour (intervals of an hour) and as I read queryDetails is not an option for me because ...
Gal's user avatar
  • 63
5 votes
1 answer
352 views

Android data counter discrepancy (sum of apps < total)

I am trying to understand the cause of a data discrepancy I'm noting with only a couple of applications. In both Tidal and Apple music, if I skip through tracks while listening to them, I will ...
C Vanstone's user avatar
1 vote
1 answer
526 views

Query data usage for both sim individually using NetworkStatsManager

I need to query data usage for both the sim cards in dual sim mobile phones using NetworkStatsManager for entire device as need to report 1 day data usage for each sim card. Hence, I need to use the ...
Deepti's user avatar
  • 138
1 vote
1 answer
528 views

NetworkStatsManager - what is the earliest possible start time?

I'm using the NetworkStatsManager class to retrieve the data usage of the apps. If I provide 01.01.2018 as start time, it shows that my phone has sent out 5,4 GB. If I provide 01.01.2017, it still ...
Patze's user avatar
  • 1,249
0 votes
1 answer
61 views

How to get Overall (not application specific)data usage from particular time period?

I am working on a wifi data usage research and want to develop a program like,When user click on a button the device is already connected to wifi will start computing data usage and on same button ...
madhu makwana's user avatar
2 votes
2 answers
3k views

Android NetworkStats.Bucket data not updating

I am building an application which monitors applications network data usage over some interval. On android 5 I had no problem with TrafficStats, although on android 8 using NetworkStats I always ...
Gomez's user avatar
  • 131
1 vote
2 answers
1k views

How to get Tethering and Mobile Hotspot data usage in Android using NetworkStatusManager or TrafficStat

I have an Android application which displaying data usage per app by NetworkStatusManager, but I can't get data usage for Tethering and Mobile Hotspot. How should I do this?
Sadjad Abbasnia's user avatar
14 votes
1 answer
9k views

How to check mobile data usage programmatically?

The question is pretty straight forward, How do I find out how much mobile data (in GB or MB) has the user used in the current month? As it has been reported as off topic, I want to clarify that the ...
Daniele C's user avatar
  • 191
14 votes
1 answer
3k views

How to measure the data usage of my app in react native?

I have a react-native app that I want to measure the data usage per user and gather them to optimize it later. I saw old questions for native android suggesting that trafficStats may give stats by ...
Assem's user avatar
  • 12k
3 votes
1 answer
3k views

How to get total data usage of an android device programmatically?

In the settings menu on my android smartphone, I can see the total data usage of the current and past cycles. Can I somehow retrieve that information programmatically in my app? Thanks in advance.
Ginso's user avatar
  • 549
0 votes
0 answers
222 views

How to get total data usage in Android 4.4

I already tried to use TrafficStats but it s not the answer of my problem, cause it only gets total data since device reboot, but in my project i must continue to keep data usage even before reboot, i ...
Maide Nur Oğul's user avatar
0 votes
2 answers
1k views

How to get Data usage on android by both wifi and Mobile data?

I need to get a data usage on each application installed on a android mobile. Ex: I installed YouTube application on my mobile i need to get data usage of YouTube app by wifi and mobile data. ...
S.Sathya Priya's user avatar
1 vote
1 answer
308 views

Youtube usage calculation using TrafficStats

Using TrafficStats i was checking the youtube app data usage.In some devices it is working fine but not with many other devices. I found that from developer site, These statistics may not be available ...
rajeesh's user avatar
  • 941
-1 votes
1 answer
78 views

Data used in WhatsApp

If I am sending a text message of 100 letters/digits over WhatsApp then how can I measure the size of the text message in mb and what is its connection with the MB required for sending that message. ...
AR5's user avatar
  • 41
2 votes
1 answer
171 views

Calculated mobile data usage is always less than actual

I am trying to calculate mobile data usage so I am using a broadcast that inform me about 3G connection then I run a Service to count data. The problem is the calculating value is always less than ...
Soufiane's user avatar
  • 368
0 votes
2 answers
625 views

Display a Snackbar in a fragment after deleting an item from the database?

I am looking for a way to have a Snackbox pop up at the bottom of the display when the user deletes an item from the database using the caseR.id.delete:. Below I have attached code from the fragment. ...
Tristan Miller's user avatar
0 votes
0 answers
596 views

How to calculate remaining internet data balance in android?

For an instance, 2 days before, I've purchased 500 MB of data plan, say 30-3-2016. Which means i'm using that data plan till now. Here whats my requirement is, I want to show the remaining data ...
manick k's user avatar
1 vote
2 answers
4k views

Android: Passing updating Data between Parent and Child-Fragment

How can I pass Data from a "Parent" Fragment to a "Child" Fragment?. I already looked how to pass Data between Fragments, but in my case i can not use the Activity. In my application, I have an ...
Hasan K's user avatar
  • 13
0 votes
1 answer
94 views

Get list of apps using data

How do I get a list of apps that can use data a display them on my screen . I have tried using intent.Action_Main . I saw some code on Internet but i could only find the list of all apps installed .
Shantam Mittal's user avatar
1 vote
1 answer
3k views

How to programatically show data usage of all applications?

I am trying to find out the data usage in Android on a per-application basis. Something like http://kschang.hubpages.com/hub/Data-Usage-Monitor-Apps-and-Widgets-for-Android-Phones-and-Devices#...
kien.nt's user avatar
  • 91
5 votes
1 answer
3k views

How to get Data usage for last 1 month in android?

I need to get data usage statistics for last month. Is there any way to calculate data usage date wise in android? I used TrafficStats class for getting data usage but it gives me all data usage of ...
Jayesh's user avatar
  • 3,861
10 votes
2 answers
1k views

Internet usage(Data usage) by WebView

I have used WebView for browsing in my application, now i want to get internet usage by my WebView. Is it possible in android? I have searched a lot but not getting even a single hint. Can anyone ...
Ravi's user avatar
  • 35.5k
0 votes
0 answers
689 views

how to get mobile data usage from the android device?

Does anyone know, how can I get mobile data usage from the android device? I've tried this code, but It only returns data for the current month - but I need this statistics for longer time(not only ...
Darko Petkovski's user avatar
5 votes
1 answer
4k views

Android how to know Internet total data usage per day through wifi and mobile

How to know internet total data usage per day? For example, at the end of the day I used 800mb then it should return like "internet usage of 800mb on 20th May 2015". So how can I detect total data ...
Nirav Mehta's user avatar
  • 1,755
3 votes
1 answer
2k views

How to get the stats of total mobile data used in give time period(eg, last month) by all the application in android

I'm trying to get the mobile data used by all application in previous month( or week) or between a given time period. I want to get the mobile data usage history. I see that android is doing this by ...
in3xes's user avatar
  • 714
7 votes
3 answers
8k views

How to calculate mobile and wifi data usage of each application in android?

Is there any possible way for calculating mobile and wifi usage of each application in android using TrafficStats' : (getUidRxBytes,getUidTxBytes, getTotalRxbytes, getTotalTXbytes, getMobileRxBytes,...
user2011302's user avatar
7 votes
2 answers
4k views

How to get the mobile data usage for my app (e.g. using TrafficStats)?

(I think this is a common question but please don't mark as duplicate too quickly as I believe my answers add something new to the discussion.) The relevant API is TrafficStats, which gets its data ...
Tom's user avatar
  • 17.8k
18 votes
4 answers
43k views

How do I programmatically show data usage of all applications?

On Android 4.0 onwards we have data usage control options in the phone. Please check the attached screen shot for further understanding. http://developer.android.com/about/versions/android-4.0-...
Kiran_b's user avatar
  • 363
10 votes
4 answers
16k views

TrafficStats Api android and calculation of daily data usage

Have a confusion over following two methods of TrafficStats of Android: getUidTxBytes(int uid) and getUidRxBytes(int uid) , These two methods return the number of bytes transmitted and received ...
Naba's user avatar
  • 513