Detailed steps can be http://blog.csdn.net/jdfkldjlkjdl/article/details/9883995 to my blog.
First, download PhoneGap
Download Address: http://phonegap.com/install/I am downloading the latest PhoneGap 2.9.1
Will download the good PhoneGap decompression, can see inside has a example
Second, build the environment
1. Refer to this example we created our project and create a new WWW directory under the assets directory, creating an XML catalog in the Res directory (directly copy the directory in example)
2, add the Cordova-2.9.0.jar in the Libs directory
3, modify mainactivity as follows
package com.example.hellomobile; import android.os.bundle; // import android.app.activity; import android.view.menu; import org.apache.cordova.*; Public class mainactivity extends droidgap { @Override public void oncreate (bundle savedinstancestate) { super.oncreate (savedinstancestate); //setcontentview (r.layout.activity_main); Super.setintegerproperty ("SplashScreen", r.drawable.splash); super.loadurl ("file:///android_asset/www/index.html", 2000); } }   4, add the permissions in the Androidmainfest.xml
<uses-permission android:name= "Android.permission.CAMERA" /> <uses-permission android:name= "Android.permission.VIBRATE" /> <uses-permission android:name= " Android.permission.ACCESS_COARSE_LOCATION " /> <uses-permission android:name=" Android.permission.ACCESS_FINE_LOCATION " /> <uses-permission android:name=" Android.permission.ACCESS_LOCATION_EXTRA_COMMANDS " /> <uses-permission android:name = "Android.permission.INTERNET" /> <uses-permission android:name= " Android.permission.RECEIVE_SMS " /> <uses-permission android:name=" Android.permission.RECORD_AUDIO " /> <uses-permission android:name=" Android.permission.RECORD_VIDEO " /> <uses-permission android:name=" Android.permission.MODIFY_AUDIO_SETTINGS " /> <uses-permission&Nbsp;android:name= "Android.permission.READ_CONTACTS" /> <uses-permission android: Name= "Android.permission.WRITE_CONTACTS" /> <uses-permission android:name= " Android.permission.WRITE_EXTERNAL_STORAGE " /> <uses-permission android:name=" Android.permission.ACCESS_NETWORK_STATE " /> <uses-permission android:name=" Android.permission.GET_ACCOUNTS " /> <uses-permission android:name=" Android.permission.BROADCAST_STICKY " </