Was this page helpful?

APP

 

PhoneGap下載 1.9 or 2.0 要想好
Android
Eclipse
1.eclipse-SDK-4.2-macosx-cocoa-x86_64.tar.gz

2.http://developer.android.com/sdk/index.html

3. ADT-20.0.2.zip

4.設定 SDK ,執行Android 程式 出現SDK Manager

http://tc.hinablue.me/901


http://ithelp.ithome.com.tw/question/10091863
servo code

http://www.embeda.com.tw/tw/?p=3174


http://docs.phonegap.com/en/2.0.0/gu...with%20Android

add extrenal jar

Sencha sencha-touch-2.0.1.1

http://docs.phonegap.com/en/2.0.0/gu...d%20with%20iOS

http://bbs.phonegapcn.com/forum.php

 

================================================================from Alice

first download several programs:
1.  eclipse-java-juno-macosx-cocoa-x86_64.tar
2.  phonegap-phonegap-2dbbdab
3.  android-sdk-macosx
(Eclipse) : Eclipse IDE for Java Developers
http://www.eclipse.org/downloads/

(SDK) : Eclipse 當中的 ” Windows ”IN “Eclipse” window/ Android SDK Manager.
JDK安裝檔案,請您上網至http://www.oracle.com/technetwork/java/javase/downloads/index.html

(AVD) : 選 Eclipse 當中的 ” Windows ” 下拉式功能表,並選擇 ” AVD Manager ” 選項。

(phoneGap) : http://phonegap.com/download
(refs)
http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android
 

Setup New Project

1.Launch Eclipse, and select menu item New Project
2.Android/ Android Application project..
3.Then specify new application project  (Name... )

  • In the root directory of your project, create two new directories:
    • /libs
    • assets/www
  • Copy cordova-2.0.0.js from your Cordova download earlier to assets/www
  • Copy cordova-2.0.0.jar from your Cordova download earlier to /libs
  • Copy xml folder from your Cordova download earlier to /res
  • Verify that cordova-2.0.0.jar is listed in the Build Path for your project. Right click on the /libs folder and go to Build Paths/ > Configure Build Path.... Then, in the Libraries tab, add cordova-2.0.0.jar to the project.
If Eclipse is being temperamental, you might need to refresh (F5) the project once again.

4. project上按(圖photogap鍵): Create a PhoneGap for Android Project..
在libs按右鍵,選擇Build Path / Configure Build Path
接下來選擇Libraries,點Add JARs,選到libs下的phonegap.jar後ok
<!!!
在 Android 某些版本下產生出來的 AndroidManifest.xml 可能會有錯誤,不用擔心,把 AndroidManifest.xml 內的 android:xlargeScreens="true" 整行刪除即可。
!!!>
(HTML sourse)
5. put new new.html under the file: “ assets/ www/ apis/ index.html “

http://www.embeda.com.tw/tw/?p=3174  
(Servo 你該運動喔, 來跟著 iPhone 一起做體操!!)

6. http://www.pjhome.net/article/Javascript/html5_Orientation.html  

HTML5 重力感应试玩~

Was this page helpful?
標籤 (Edit tags)
  • No tags
您必須 登入 才能發佈評論。
Powered by MindTouch Core