Watch more at: Up and Running with PhoneGap. This tutorial explains how to display location information in a mobile application using the Geolocation API.
This tutorial is a single movie from the Up and Running with PhoneGap course presented by lynda.com author Ryan Stewart. The complete course duration is 1 hour and 56 minutes long and shows how to build and package native device applications using PhoneGap and web technologies such as HTML, CSS, and JavaScript.
Introduction
1. Overview of a Mobile Web Application
2. Overview of PhoneGap
3. Setting Up Your Development Environment
4. Creating an Application
5. Compiling a PhoneGap Application
6. Extending PhoneGap
7. Testing and Debugging an Application
PhoneGap
PhoneGap is a mobile development framework produced by Nitobi, purchased by Adobe Systems. PhoneGap, is an open-source framework for building mobile applications. It enables software programmers to build applications for mobile devices using JavaScript, HTML5 and CSS3, instead of device-specific languages such as Objective-C. The resulting applications are hybrid, meaning that they are neither truly native (because all layout rendering is done via web views instead of the platform’s native UI framework) nor purely web-based (because they are not just web apps, but are packaged as apps for distribution and have access to native device APIs). From 1.9 version onward it is even possible to freely mix native and hybrid code snippets. As a web developer, you have full access to what the device can do.
History
First developed at an iPhoneDevCamp event in San Francisco, PhoneGap went on to win the People’s Choice Award at O’Reilly Media‘s 2009 Web 2.0 Conference and the framework has been used to develop many apps. Apple Inc. has confirmed that the framework has its approval, even with the new 4.0 developer license agreement changes. The PhoneGap framework is used by several mobile application platforms such as ViziApps, Worklight, Convertigo and appMobi as the backbone of their mobile client development engine. Adobe officially announced the acquisition of Nitobi Software (the original developer) on October 4, 2011. Coincident with that, the PhoneGap code was contributed to the Apache Software Foundation to start a new project called Apache Cordova. The project original name, Apache Callback, was viewed as too generic. Then it also appears in Adobe Systems as Adobe PhoneGap and also as Adobe Phonegap Build (now out of beta).
Early versions of PhoneGap required a person making iOS apps to have an Apple computer, and a person making Windows Mobile apps to have a computer running Windows. After September 2012, the “PhoneGap Build” service allows a programmer to upload his source code to a “cloud compiler” that generates apps for every supported platform.
W3C Geolocation API
The W3C Geolocation API is an effort by the World Wide Web Consortium (W3C) to standardize an interface to retrieve the geographical location information for a client-side device. It defines a set of objects, ECMAScript standard compliant, that executing in the client application give the client’s device location through the consulting of Location Information Servers, which are transparent for the application programming interface (API). The most common sources of location information are IP address, Wi-Fi and Bluetooth MAC address, radio-frequency identification (RFID), Wi-Fi connection location, or device Global Positioning System (GPS) and GSM/CDMA cell IDs. The location is returned with a given accuracy depending on the best location information source available.
See Related Topics:
- Mobile Apps – Native or Web?
- Secure iPhone Access to Corporate Web Applications
- Continuous Mobile Application Testing
Website:
Build My Site







