Click here to load reader

Sencha touch 2 訓練課程 3 phonegap整合

  • View
    157

  • Download
    1

Embed Size (px)

DESCRIPTION

Sencha/Phonegap/Android

Text of Sencha touch 2 訓練課程 3 phonegap整合

PowerPoint

Sencha Touch 2 3Phonegap-Android PhonegapPhonegap APP

2014/12/62Phonegap2014/12/63PhonegapSencha Android

2014/12/64PhonegapAndroid SDK MANAGERADTPlateform2014/12/65PhonegapInstall Node.jsconsole npm

2014/12/66http://nodejs.org/download/Phonegap cordovanpm install -g cordova2014/12/67Phonegap2014/12/68Phonegapcordovacordova2014/12/69sencha cordova init [AppID] [AppName]Phonegap Android Platform cordova

Android Developer KitADKtools:d:\Google\android-sdk-windows\tools\

2014/12/610Cordova platform add androidPhonegap2014/12/611

Phonegapcordova2014/12/612Phonegap-Device

2014/12/613cordova plugin add org.apache.cordova.devicePhonegapNetwork Connection and Battery2014/12/614cordova plugin add org.apache.cordova.network-informationcordova plugin add org.apache.cordova.battery-statusPhonegapAccelerometer, Compass, and Geolocation2014/12/615cordova plugin add org.apache.cordova.device-motioncordova plugin add org.apache.cordova.device-orientationcordova plugin add org.apache.cordova.geolocationPhonegapCamera, Media playback and Capture2014/12/616cordova plugin add org.apache.cordova.cameracordova plugin add org.apache.cordova.media-capturecordova plugin add org.apache.cordova.mediaPhonegapAccess files on device or network (File API)2014/12/617cordova plugin add org.apache.cordova.filecordova plugin add org.apache.cordova.file-transferPhonegapNotification via dialog box or vibration2014/12/618cordova plugin add org.apache.cordova.dialogscordova plugin add org.apache.cordova.vibrationPhonegapContacts2014/12/619cordova plugin add org.apache.cordova.contactsPhonegapGlobalization2014/12/620cordova plugin add org.apache.cordova.globalizationPhonegapSplashscreen2014/12/621cordova plugin add org.apache.cordova.splashscreenPhonegapInAppBrowser2014/12/622cordova plugin add org.apache.cordova.inappbrowserPhonegapDebug console2014/12/623cordova plugin add org.apache.cordova.consolePhonegap2014/12/624cordova plugin ls Phonegap2014/12/625

Phonegap2014/12/626cordova plugin remove cordova plugin remove org.apache.cordova.consolePhonegapcordova.local.properties

2014/12/627cordova.platforms=ios android blackberry wp8cordova.platforms=androidPhonegapApp.json"platforms": "android2014/12/628Phonegap Apache AntAndroid APKPATH

2014/12/629http://ant.apache.org/bindownload.cgi

WindowsZIPOSX/LINUXtar.gzPhonegapPATH Ant Android sdk

2014/12/630c:\apache-ant-1.8\bin;c:\android-sdk-windows\tools;c:\android-sdk-windows\platform-tools;OSX cd ~sudo nano bashrc_profile export PATH= /opt/apache-ant-1.8/bin:/usr/local/bin:$PATH Control+O Control+X

Phonegap ant2014/12/631

Phonegap

2014/12/632 APP2014/12/633 APPAPK2014/12/634Sencha:sencha app build nativeWindows 8 cmdPhonegap:cordova build APPAPK 2014/12/635\cordova\platforms\android\ant-build\

release2014/12/636Phonegap:cordova build --release

APK APP2014/12/637sencha app build run nativePhonegap2014/12/638keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000platforms\android\ ant.properties2014/12/639key.store= iHome.keystorekey.alias= iHomeplatforms\android\ local.properties

2014/12/640sdk.dir=D:\\Google\\android-sdk-windowskey.store.password=2014/12/641

Search related