1 / 10

ANDROID 與 OSGI 平台整合

ANDROID 與 OSGI 平台整合. LUMINIS 的 PROJECT. ANDROID - DALVIK VM. Google Android 讓開發者用 Java 開發 Android 上的應用程式,但不是用傳統的 JVM ,而是 Dalvik VM 使用 dx 工具,產生可在 Dalvik VM 上執行的 .dex 檔. ANDROID BUILD. aapt. Create packaged resource. Packaged resource file. Manifest. R. Resources. javac. dx.

krista
Download Presentation

ANDROID 與 OSGI 平台整合

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ANDROID與OSGI平台整合

  2. LUMINIS的PROJECT

  3. ANDROID - DALVIK VM • Google Android 讓開發者用Java開發Android上的應用程式,但不是用傳統的JVM,而是DalvikVM • 使用dx工具,產生可在Dalvik VM上執行的.dex檔

  4. ANDROID BUILD aapt Create packaged resource Packaged resource file Manifest R Resources javac dx Classes dex compile To Dalvik bytecodes Assets apkbuilder -u Source code Create unsigned apk Unsigned apk Libraries adb Signed apk Sign apk Publish or Test Key 4 jarsigner 資料來源:http://asantoso.wordpress.com/2009/09/15/how-to-build-android-application-package-apk-from-the-command-line-using-the-sdk-tools-continuously-integrated-using-cruisecontrol/

  5. 準備BUNDLE • 步驟一 將我們的.jar檔,輸出成.dex檔: dx --dex --output=classes.dex JAR_file.jar 再將此.dex檔,放進.jar檔裡面: aapt add JAR_file.jar classes.dex • 步驟二 開啟模擬器:emulator & 使用adb工具發布: adb push JAR_file.jar path_emulator/JAR_file.jar • 步驟三 使用範例: find * -type f -exec adb push {} /data/felix/{} \;

  6. 目錄結構 – 下載OSGI-ANDROID.ZIP • osgi-android: / \- bin \- bundle \- conf \- felix.sh

  7. 使用ADB工具 • 開啟shell指令: adb shell • 進入push進去的資料夾: cd /data/felix • 執行Unix來run背景: sh felix.sh

  8. RUN動態模組程式- PAINT

  9. 使用LINUX作業系統 - UBUNTU • 使用版本比較下載下列Project: svn checkout 網址 將android.home的value值,檔案目錄位置 改成自己的Android SDK所在位置 Run felix 的android程式即可動態使用paint

  10. 參考資料 • Luminis官方網站 • http://opensource.luminis.net/wiki/display/SITE/OSGi+Android • Luminis官方版ppt: • http://opensource.luminis.net/wiki/download/attachments/2031652/OSGi+on+Google+Android+using+Apache+Felix.pdf • http://felix.apache.org/site/apache-felix-framework-and-google-android.html

More Related