Two concurrent threads for WiFi scanning and picture taking respectively