Android Photo Upload

Worlds collided this week as I am working on a camera trap in Wildlife Observations that will use an Android phone as a camera. The phone will be connected to a micro controller and will be triggered by a PIR sensor. After some frustration and semi-success with the Processing example I decided it might be easier to just do it in Java. I picked up Shawn Van Every’s book Pro Android Media (recommended) and started working through it. I managed to get a some basic examples working pretty easily, taking photos and saving to the SD card, implementing a user interface to create metadata,etc. Then I tried to include the upload functionality, which took a little doing but I got it working. Proof.

The code

Comments are closed.