darryncampbell / Network-Stats-Logger

Small application to log output from android.app.usage.NetworkStats
8 stars 1 forks source link

differentiate mobile data usage for dual sim #1

Open pallaviMN opened 6 years ago

pallaviMN commented 6 years ago

Hi,

By using trafficstats API, is there any way to differentiate mobile data usage for sim 1 & sim 2 programmtaically?

darryncampbell commented 6 years ago

Hi, I don't know and unfortunately I don't have a dual sim device to do any testing with. This project re-uses code from another project (see the ReadMe) and that project had a similar question, https://github.com/RobertZagorski/NetworkStats/issues/4 - the suggestion there is to use the subscription manager but again, I have not looked into this I'm afraid. Note that this project does not use the TrafficStats API, it uses NetworkStats.