title: TrafficStats.getTotalRxBytes doesnt count videoview's traffic flow
body: <p>i'm making a soft to play online video, and i'm trying to add a traffic statistic feature tot the soft. I try to use TrafficStats and getUidRxBytes function. however, it doesnt count the videoview's net traffic. 
  Like the following code ,i can see the rx(return by getTotalRxBytes) increase a lot, but the myapprx(return by getUidRxBytes) doesnt change.</p>
  
  <pre><code>int uid = VideoViewPlayer.this.getApplicationInfo().uid;
  long rx = TrafficStats.getTotalRxBytes();
  long tx = TrafficStats.getTotalTxBytes();
  long myapprx = TrafficStats.getUidRxBytes(uid);
  long myapptx = TrafficStats.getUidTxBytes(uid);
  String info = "uid:"+uid+" rx:"+rx+" tx:"+tx+" myrx:"+myapprx+" mytx:"+myapptx;
  </code></pre>
  
  <p><strong>UPDATE</strong><br>
  Thanks first, your comment gives me important clue. And I'm trying to find the uid responsable for steaming media. I use the following code.However i cannt find the process that comsume the traffic.</p>
  
  <pre><code>        List&lt;ActivityManager.RunningAppProcessInfo&gt; appProcessList = am.getRunningAppProcesses();
          ActivityManager.RunningAppProcessInfo info=null;
          //List&lt;ActivityManager.RunningServiceInfo&gt; appProcessList = am.getRunningServices(100);
          //ActivityManager.RunningServiceInfo info = null;
  
          strinfo = "";
          long max =0;
          for(int i=0;i&lt;appProcessList.size();++i)
          {
              info = appProcessList.get(i);
              String key = info.processName+"_" +info.uid;
  
              if(mNetTraffic.containsKey(key))
              {
                  long myrx = TrafficStats.getUidRxBytes(info.uid);
                  long lastrx = mNetTraffic.get(key).longValue();
                  mNetTraffic.put(key, new Long(myrx));
                  if(myrx-lastrx&gt;max &amp;&amp; myrx - lastrx&gt;0)
                  {
                      max = myrx-lastrx;
                      strinfo = key +":"+max;
                  }
              }else
              {
                  long myrx = TrafficStats.getUidRxBytes(info.uid);
                  mNetTraffic.put(key, new Long(myrx));
              }
          }
          //trying to watch the key and max and find process and uid, sadly cant find it
  </code></pre>