Questions tagged [android-data-usage]

49 questions
2
votes
0 answers

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 logic using method queryDetailsForUid(). Does any…
2
votes
2 answers

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 receive same data. I've read that bucket refreshes…
Gomez
  • 81
  • 1
  • 5
2
votes
1 answer

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 the value calculated by the Android data usage…
Soufiane
  • 368
  • 1
  • 3
  • 14
1
vote
0 answers

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 usage for all of our devices since August 2021.…
1
vote
1 answer

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 their servers. How can this be done as you…
Seb
  • 31
  • 1
  • 2
1
vote
0 answers

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 connections and the app works completely fine, I…
1
vote
0 answers

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 working with has very low performance, the network is…
1
vote
0 answers

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 different solutions from other answers on stackowerflow…
IncipientInfo
  • 523
  • 3
  • 10
1
vote
1 answer

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 method querySummaryForDevice(). I need to pass…
Deepti
  • 138
  • 1
  • 8
1
vote
1 answer

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 shows 5,4 GB. This lets me assume that there is a…
Patze
  • 859
  • 10
  • 19
1
vote
2 answers

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?
1
vote
1 answer

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 on all platforms. If the statistics are not…
rajeesh
  • 937
  • 10
  • 11
1
vote
2 answers

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 Activity which creates a Fragment by clicking on…
Hasan K
  • 13
  • 1
  • 5
1
vote
1 answer

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#slide4646427 I've searched many links and posts on…
0
votes
0 answers

App2 results not recieved on App1

I am trying to return results to app1 from app2 but onActivityResultsnot getting hit. I have tried both 'startActivityForResult' and new call back methods. Below are my codes. Intent intent = new Intent(); intent.setComponent(new…