Discussion on:

2
Comments

Join the conversation!

Follow via:
RSS
Email Alert
0 Votes
+ -
Useful Article!
Pabloku 8th Jan 2012
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
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.
Keyboard Shortcuts:
Prev
Next
Toggle
Join the conversation
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.