Android Application - manage sensor