Installing the PHONEGAP framework based on the Android SDK

Source: Internet
Author: User

Download Zip files PhoneGap 2.0.0


PhoneGap 2.0.0 Released 2012
http://phonegap.com/download/

The directory structure after decompression:
Directory Structure
-------------------


|-doc/... the source documentation the.
|-lib/.... platform code for supported operating systems.
| |-android/
| |-bada/
| |-blackberry/
| |-ios/
| |-symbian/
| |-webos/
| '-windows/
|-changelog. A changelog compiled from comments and authors
|-license. The Apache Software license v2
|-version .... release version in plain text
'-readme.md ..... release Readme

====================================================

Execute create.bat in the appropriate directory of the Android PhoneGap 2.0.0

CD C:\Phonegap\phonegap-phonegap-20120720\lib\ Android \ Bin

Create \phonegap\opath-phonegap-android Opath

which

Project directory C:\phonegap\opath-phonegap-Android

Project Name: Opath


Result: Build directory structure

C:\Phonegap\opath-phonegap-Android

====================================================

Next, import the project into Eclipse ...

If Android for Eclipse's plugin ADT is installed, we can import the PhoneGap-generated project into eclipse. First we open Eclipse and create a new Android Project, such as



Where you enter the name of project name is Hellogapandroid, where you select the directory for the project that was built with PhoneGap in Create project from existing source. Later in Eclipse, you will see the following structure


You can see that the WWW directory under assets contains HTML, JavaScript, and CSS files that you need to use in your project. Also, verify that the Phonegap.jar file exists under the project's Lib directory.

Well...... That's probably the way it is. I am just a novice, we all study together ...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.