Hey,
If you really want to scan intensively, the best way is to set setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY). Manually stopping and starting a scan every five seconds would be very inefficient. By using the SCAN_MODE_LOW_LATENCY flag Android will scan more than enough!