PhoneGap Device API samples