Example code for proximity sensor on Android devices