Thanks about this useful article. I am a dummy developer in Android and I found this article very intereseting for my idea.
I have some doubts. I am trying to save in a SQLite database the 3G data usage. I would like to ask you about the best "design" you would suggest me.
What I want to do is to log the 3G data usage into a table for query this information every month.
I have been "playing" with services and trafficStats. I saw that If I turn off the 3G and then turn on it again, the TrafficStats.getMobileTxBytes and TrafficStats.getMobileRxBytes counter are reseted... Is there any way to avoid this or to "listen" for switching on/off the 3g?
Thanks very much,
Pabloku
Discussion on:
i tried creating app by using above tutorial...but when i close the app by clicking on back button; after resume, it starts again with fresh values of rxBytes and txBytes.
kindly help.
kindly help.
- Keyboard Shortcuts:
- Prev
- Next
- Toggle

































