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
Post a Comment