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 usage ? After much googling I could only find data usage in sending and receiving bytes but not in total usage. And also want to split the usage into wifi and mobile data. Take a look at the TrafficStats class. For this, you'll want to look specifically at getTotalRxBytes() , getTotalTxBytes() , getMobileRxBytes() , and getMobileTxBytes() . A quick overview: getTotalRxBytes = total downloaded bytes