title: How to find wifi and network data usage separately by particular application in android?
body: <pre><code>recived = TrafficStats.getUidRxBytes(uid);
  send = TrafficStats.getUidTxBytes(uid);
  
  TrafficStats.getMobileRxBytes(); 
  TrafficStats.getMobileTxBytes(); 
  
  TrafficStats.getTotalRxBytes();
  TrafficStats.getTotalTxBytes();
  </code></pre>
  
  <p>i have application id and i can get that application data usage but i cant get information in more detailed like data usage using wifi and network. i want to find both separately for all installed application in device. how can i find that.? i have already tried many things but didn't get any solution for that.</p>