phonegap的安装参考官方文档,需要先装node.js,然后配置ant,android sdk
一、phonegap创建工程html5_iem
cordova create html5_iem com.xxx.html5iem "IEM"
cd html5_iem
cordova platform add android
cordova build
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation.git
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-file.git
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer.git
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git
二、eclipse中引入android工程:html5_iem\platforms\android
三、将html代码拷贝到html5_iem\platforms\android\assets\www目录
四、调用模拟器或者手机测试
一、phonegap创建工程html5_iem
cordova create html5_iem com.xxx.html5iem "IEM"
cd html5_iem
cordova platform add android
cordova build
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation.git
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-file.git
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer.git
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git
二、eclipse中引入android工程:html5_iem\platforms\android
三、将html代码拷贝到html5_iem\platforms\android\assets\www目录
四、调用模拟器或者手机测试