title: TrafficStats Api android and calculation of daily data usage
body: <p>Have a confusion over following two methods of TrafficStats of Android:
  <strong>getUidTxBytes(int uid) and getUidRxBytes(int uid)</strong> ,
  These two methods return the number of bytes transmitted and received through the network for this UID. But what is the time unit of it, is it per second?
  If I want to calculate data transmitted and received per day per app, what should I do. I thought one way, to store data in sql and keep on adding data to the table. Is it proper way?</p>