This article firstly post to my QQ Zone. You can visit http://user.qzone.qq.com/457283 to get more blog.
1. What is JIL?
The terms of jil is Joint Innovation Lab for short. On April 24, 2008, China Mobile Limited, SOFTBANK and Vodarfone annouced angreement to establish a Joint Innovation Lab(JIT) to develop mobil internet services. In April, 2009, Verizon Wireless announced their intertion to join the JIL.
2. Where can i get much more information about JIL?
Reference the main page of JIL: http://www.jil.org/
There are 5 documents introduce JIL, JIL SDK and JIL Widget Specification
a. JIL Widget SDK 1.01 for Linux (32-bit)
b. JIL Widget SDK 1.01 for Windows
c. JIL SDK 1.0 Manual
d. JIL SDK 1.0 Getting Started
e. JIL SDK 1.0 Overview
PS: Those documents only for register user.
3. How can i develop my own widget for JIL platform?
Requirement:
JAVA SDK( recommend SUN JAVA 6.0 or higher)
JIL SDK and Emulator
The latest java sdk you can get it from http://java.sun.com and the latest JIL SDK & emulator you can get it from http://www.jil.org website.
The following sample is based on Linux platform(Sorry, i have no any windows platform for testing)
1) Decompress the JIL SDK package
$tar xvzf jil_sdk_linux_1-0.tar.gz
2) Install with java command line
$java -jar jil_setup_lnx_090527.jar
3) Select your installation directory from graphic installation panel and click next ...next ...next ... and finish...It's very simple~
The following, you can launch 'eclipse' executable file to create your first widget project.
$cd JIL_SDK/eclipse
$./eclipse
Next, select new menu from eclispe menu bar and click Widget Project. You can follow the wizzard to build your first widget.
4. Hacking in JIL Emulator
The JIL SDK provides an emulator for developer. This emulatfor is based on Android Open Source Project. But there are some different features between JIL and original Android Open Source. Next, i will hacking in JIL emulator to explore those feature.
a) How does Widget run in OMS?
The emulator is developed by Borqs Ltd. Their provide two android app and one service for widget maintain:
WidgetManager.apk, WidgetPlayer.apk and OmsServiceProvider.apk. The WidgetMangaer.apk is responsible to download, install, delete widget package and the WidgetPlayer.apk is a widget player which based on Webkit engine(extends from webview object).
The WidgetPlayer application include a shared library for extend Javascript engine and implement some jni method for Player. Maybe this player is beta version, i think the style of mainly activity is very idiot. All of widgets run in one big workspace(Player area) and can not support add widget to HOME desktop. :(~~~
The WidgetManger.apk has much more responsibilities: Download, Installation, Delete and so on. The all of managerment information depend on widgets.db database file(SQLite 3).The are 13 tables in the Widgetes.db database file as below:
Because the characters limitation, so i post the definition of database table in next blog.
发表于 @ 2009年07月08日 22:12:00 | 评论( loading... ) | 举报| 收藏