With StrictMode enabled I just started getting this exception:
java.lang.Throwable: Untagged socket detected; use TrafficStats.setThreadSocketTag() to track all network usage
With StrictMode enabled I just started getting this exception:
java.lang.Throwable: Untagged socket detected; use TrafficStats.setThreadSocketTag() to track all network usage
My solution has been to call on initialisation the following:
private static final int THREAD_ID = 10000;
TrafficStats.setThreadStatsTag(THREAD_ID);