Detect and use light and gryroscope sensor in Android