android - How to know data usage of mobile for specific sim slot -


i trying find data usage specific sim slot. using trafficstats.getmobilerxbytes() method gives total usage of both sim in dual sim device. want particular data usage of individual sim. suggestions appreciated.

just hint: upon sim slot data active event trafficstats.setthreadstatstag(identifier_tag);

and

if(trafficstats.getthreadstatstag() == sim1_slot){      int usedbytes = trafficstats.getmobilerxbytes()  }else{     // sim2 slot     int usedbytes = trafficstats.getmobilerxbytes()  } 

Comments

Popular posts from this blog

Capture and play voice with Asterisk ARI -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -