Change Proximity Sensor Events by Using Camera

This post is about how to capture pictures using camera with sensor event updates (Proximity Sensor). This is about the simplest implementation of device camera in integration to a particular type of sensor (Proximity sensor here).

This post is also defines how to create and set a transparent theme to the main activity ready to capture pictures on change of proximity sensor state. It also defines how to create a preview for camera resource occupying no space on the activity’s layout.

Continue reading