PhoneGap is a HTML5 platform through which developers can use HTML, CSS, and JavaScript to develop local mobile applications. As a result, developers can now write applications only once and then publish them in 7 major mobile platforms and app stores, which include: IOS, Android, BlackBerry, WebOS, Bada, Winodws phone and Symbian.
It enables developers to take advantage of the core features of Iphone,android,palm,symbian,wp,bada and BlackBerry smartphones-including geolocation, accelerators, contacts, sounds and vibrations, In addition, PHONEGAP has a rich plug-in that can extend unlimited functionality.
Below are some code examples that use the framework:
Get a location:
//gap would invoke this function once it had the the location function go Tlocation (Lat,lon) {$ (' lat '). InnerHTML = "Latitude:" + lat; $ (' lon '). InnerHTML = "Longitude:" + lon;
Get the photo captured by the camera
function Takephoto () {var photo = Gap:takephoto (); return photo; }