[Schedule] Maidroid--用萌化的手侵入侵藍星

Java 程式語言是 Android 官方預設的應用程式開發方式,但我們也能夠
使用其他產生標準 JVM bytecode 的高階程式語言來進行 Android 應用
程式的開發,其中 Scala 就是一個可以拿來開發 Android 應用程式的
JVM-based 程式語言。

與 Java 相較之下,Scala 具有 type inference、function literal、
high-oreder function、function currying、pattern matching 等可進
行 Function Programming 的特色,讓程式設計師可以用比 Java 更簡短
易懂的程式碼來實作 Android 應用程式。

Scala 同時也是 statically typed 的編譯式語言,並且與 Java 具有完
整的 interoperability,這讓我們在使用 Scala 撰寫 Android 應用程式
時,可以直接使用所有 Android SDK 所提供的元件,而不需要任何的
gule code。

另一方面,與 JRuby / Jython 等 script 程式語言開發的 Android 應用
程式不同,使用 Scala 撰寫的 Android 應用程式可直接封裝成標準的 APK
檔, 使用者的手機上不必安裝 ASE 等額外的環境即可執行。

綜合上述幾點,Scala 是一個相當適合拿來取代 Java 開發 Android 程式
的語言,在這個議程中,我們就將介紹如何利用 Scala 開發 Android 應用
程式。

Categories

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Schedule

About This Post

This page contains a single entry by posted on April 8, 2010 1:06 AM.

[Schedule] Designing Website for Mobile Safari was the previous post in this blog.

[Schedule] K-9 Mail is the next post in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.32-en
hosted by PhotonVPS