Saturday, July 11, 2009

Compiling Android Scripting Environment

Android Scripting Environment (ASE) is the scripting language (BeanShell, Python, Lua, Ruby) environment for Android Operating System.

The following instructions are according to the discussion from ASE group.

Prerequisites

To compile ASE, you need a Linux machine, then here goes:

1. Get Android source (read http://source.android.com/download to fetch the source) and
name the folder as 'mydroid'(or else you prefer). In the following instructions I assume all the folders are in user's home folder(~) .

2. Get Android SDK (download from http://developer.android.com/) and
extract it as "android_sdk"(or else you prefer).

3. Get Android Scripting Environment source (svn checkout from http://code.google.com/p/android-scripting/source/
) as "ase"(or else you prefer).

4. Enter ase/tools folder and execute "fix_android_sdk.py"
to patch the "android_sdk".

$ cd ase/tools
$ python fix_android_sdk.py ~/mydroid ~/android_sdk
Copying source from .....mydroid to .....android_sdk/platforms/android-[verison]/sources
Adding android.os.Exec to android.jar
Compiling android.os.Exec to....
Done!

In addition to modifying the SDK by adding android.os.Exec, the script
will also copy the source files into the SDK so that they can be
browsed in Eclipse.

Import Project into Eclipse

After executing the script, follow the instructions for developing in
Eclipse in the Android developer guide to setup a workable Android
development environment.

Change the project build path and specify the BeanShell path to (project
path)/beanshell/bsh-[version].jar

Compile it, done!


PS: Python and Lua are precompiled and already put in res/raw folder. You
don't need to setup the cross compile environment unless you want to
also compile Lua and Python yourself.

Wednesday, June 24, 2009

HTC HERO



介面進化多了

OPhone 的 Web 3.0 架構



中國移動基於 Android 自行訂製的 OPhone 系統終於釋出了 SDK。
OPhone 的 SDK 相容於 Android 1.0 API ,使用 ADT 0.8 版開發工具(不支援 Android 1.1、1.5 和 ADT 0.9.x 以上版本的開發工具),並需要安裝它提供的 OPhone SDK 還有 WDT (桌面小程式開發工具 Widget Development Toolkit)這個 Eclipse Plugin。

無獨有偶的,OPhone 弄出了一個跟 Opera Unite 相似的「客戶端即伺服器」架構,叫做「Mobileyou」手機網頁伺服器。我乾脆把這類架構稱為「網頁P2P」,或「pWeb」(Personal Web、Peer-2-Peer Web)。

這類「pWeb」服務架構的本質,簡單說來是在電腦或手機上裝個網頁伺服器,以提供各種以網頁為介面的服務,再結合個人電腦或手機上提供的個人資訊,提供異化的功能性網站。

中國移動或 Opera 這些服務提供者端,將使用某種動態 DNS 轉址機制(Dynamic DNS),以提供一個統一的網址,如「http://官方網址/個人暱稱/服務」這樣的連結,讓網路上所有的人都可以用這個網址連上 pWeb 網站,以解決使用者該透過哪個網址訪問的問題。

OPhone 提供的「Mobileyou」,跟 Android 上另一個「i-jetty」應用程式很類似。裝了之後都可以存取手機上的功能,透過網頁介面來管理個人通訊錄、查看簡訊等。

有了這樣的服務以後,女朋友要看男朋友有沒有偷吃,就不用再偷偷拿他的手機查看簡訊,只要到個人手機上的網站查看就行了(怎麼覺得舉的是個反例 :p)


Friday, June 19, 2009

擴增實境


另一個擴增實境的應用。

Sunday, June 14, 2009

學走

程式設計領域裡,每一個人都想飛。但是,還沒學會走之前,不要跑!

--侯捷

Tuesday, June 09, 2009

Anobiit



寫了篇文章,介紹自己寫的小軟體 Anobiit

Friday, May 22, 2009

Google 救甘興 -- Google 應用服務引擎(App Engine)中文文件




Google 對他的應用服務引擎(App Engine)推廣不遺餘力,
除了在四月多發佈 Java 版的應用服務引擎之外,
前幾天竟然把官方網站上的文件全部翻譯成了中文!

學網頁開發再也不用自己架設伺服器(Server)、安裝網頁伺服器(Web Server)、伺服器語言、和資料庫(Database),有了 Google 應用服務引擎通通一次搞定。

對 Google 應用服務引擎有興趣的人可以連至Google 應用服務引擎官方網站 (中文)查看。

Monday, May 18, 2009

HTC 自製介面影片





HTC 自製介面的影片流出了,與 Android 標準介面有些不同。

就像 Linux 發佈套件(Ubuntu, OpenSUSE, RedHat)一樣,當 OS 都免費取得時,要與其他廠商作區隔就得在使用介面(3D 效果)、易用性(各式工具,如 PDF Reader、HTC Mail)、特有功能(與 Extrange 整合)等方面來著墨。