An example of PhoneGap Camera API