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

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -