Cordova
cordova of android
project
https://github.com/Microsoft/cordova-samples
https://github.com/Microsoft/cordova-samples/tree/master/todo-angularjs/AngularJSTodoApp
ngCordova
http://www.ionic.wang/article-index-id-61.html
把cordova裝進android: https://www.youtube.com/watch?v=4jc6GqOaQl8
http://ngcordova.com/docs/plugins/splashscreen/
http://www.digitalaholic.com/how-to-setup-cordova-angularjs-app/
cordova plugin add cordova-plugin-splashscreen
安裝
npm install -g cordova
windows npm的安狀請上網找
http://cordova.apache.org/#getstarted
指令
cordova create <path>
cordova platform add <platform name>
example of cordova help:
Examples1
cordova create myApp org.apache.cordova.myApp myApp
cordova plugin add cordova-plugin-camera --save
cordova platform add android --save
cordova requirements android
cordova build android --verbose
cordova run android
cordova build android --release -- --keystore="..\android.keystore" --storePassword=android --alias=mykey
Example 2
$ cordova create hello com.example.hello HelloWorld
$ cd hello
$ cordova platform add android
$ cordova prepare # or "cordova build"
https://cordova.apache.org/docs/zh-tw/latest/guide/platforms/android/ http://cordova.apache.org/#getstarted
Try
建立專案
cordova create TestApp com.example.test_app TestProject
使用cmd執行tree /f D:\project\App\TestApp
將會列出cordova專案目錄如下所示
D:\PROJECT\APP\TESTAPP
│ config.xml
├─hooks
│ README.md
├─platforms
├─plugins
└─www
│ index.html
│
├─css
│ index.css
│
├─img
│ logo.png
│
└─js
index.js
建立platform
cordova platform add android
載入noCordova plugin splashcreen
cordova plugin add cordova-plugin-splashscreen
不知道要幹嘛的
將www放進去
build
cordova build android
open Android Studio
open existing project 要選到platform android