public void startSampling(){
  if (mSamplingCounter.getAndIncrement() == 0) {
    mHandler.startSamplingThread();
    mLastTimeReading=SystemClock.elapsedRealtime();
  }
}

public void startSampling ( ) { if ( mSamplingCounter . getAndIncrement ( ) == 0 ) { mHandler . startSamplingThread ( ) ; mLastTimeReading = SystemClock . elapsedRealtime ( ) ; } }
method call to start sampling for download bandwidth .
