Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

174
Views
How to get tethering traffic data

I'm doing an application that store traffic data but i can't get tethering traffics.

    // UIDs for Tethering ?
    appNames.put(5, "Tethering WiFi");
    appNames.put(7, "Tethering USB");
    appNames.put(10, "Tethering BT");
    appNames.put(11, "Tethering Unknown");


    appNames.put(-5, "!Tethering WiFi");
    appNames.put(-7, "!Tethering USB");
    appNames.put(-10, "!Tethering BT");
    appNames.put(-11, "!Tethering Unknown");

    for(ApplicationInfo app : cnt.getPackageManager().getInstalledApplications(0))
    {
        appNames.put(app.uid, app.packageName);
    }

    for(Integer uid: appNames.keySet())
    {
        apps.put(uid, new TrafficRecord(uid, appNames.get(uid)));
    }



TrafficRecord(int uid, String tag)
{
    tx = TrafficStats.getUidTxBytes(uid);
    rx = TrafficStats.getUidRxBytes(uid);
    this.tag = tag;
}

but the Tethering traffic data are always empty. how can I do it?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!