Get the source.
git clone git://github.com/phonegap/phonegap.git
PhoneGap project is separated into git submodules for each device.
phonegap |- README.md |- android/ |- blackberry/ |- iphone/ |- symbian.wrt/ `- winmo/ (not production ready)
Each project has a respective README.md file. view that file for detailed information on how to work with that device. PhoneGap offers one unified API for accessing core functionality on all devices. Where possible, phonegap follows the HTML5 spec.
Getting the Submodules
- Launch "Terminal.app" and navigate to the phonegap folder (this folder)
- Type in "git submodule init" and press Enter
- Type in "git submodule update" and press Enter
Updating a Submodule
The submodules only get the code at a certain commit, when initially added. From time to time, we will update this commit pointer. To manually update to the latest code:
- Launch "Terminal.app" and navigate to the submodule folder
- Type in "git remote update" and press Enter
- Type in "git merge origin/master" and press Enter
Exposes properties of the phone, such as its device ID, model, and OS version number.
Gain access to the Latitude / Longitude of the device, and depending on the type of device, the course, speed, and altitude.
Monitor the accelerometer on the device to detect orientation, shaking and other similar actions.
Query the phone addressbook to read the users contacts.
Read the device layout orientation, e.g. landscape vs portrait.
Brings up the camera or photo browser on the phone to allow the user to upload a photo.
Triggers the vibration alert on the phone, if it is supported.
Play sound files (WAV, MP3, etc).
Trigger and activate phone calls.
- Website - phonegap.com
- Google Group - groups.google.com/group/phonegap
- Wiki - wiki.phonegap.com/
- Twitter - twitter.com/phonegap
- Issue Tracker phonegap.lighthouseapp.com
Fork, commit, push, and send us a pull request at phonegap/phonegap.
The MIT License
Copyright (c) 2008, 2009, 2010 Rob Ellis, Brock Whitten, Brian Leroux, Joe Bowser, Dave Johnson, Shazron Abdullah, Jesse MacFadyen, Filip Maj, Ryan Willoughby, Nitobi
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.