How to implement a simple motion detector using the front camera and Android SDK?
An example scenario would be like this: a device is standing on a stand and plays a movie. If a person appears in front of it, without even touching it – it changes the movie.
Here is a Tutorial on how to take a photo with the camera.
If your take a photo every second, and then scale it down to something like 8×8 pixels, you can easily compare two photos and find out if something has happened, to trigger you action.
The reason why you should scale it down are the following: