• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

TraficStats vs NetworkStatsManager

I want to calculate data usage in android application for LTE and Wi-Fi data usage. For that my current implementation is using TraficStats API from android. I am not getting accurate data from this. Also let me know which are the other scenarios where TraficStats not giving accurate data. In case if I want to Use NetworkStatsManager, It will asking data usage permission, which need to be enabled by user that I don't want to use. Kindly suggest.
 
Back
Top Bottom