原创 Resources and Internationalization

Resources are external files (that is, non-code files) that are used by your code and compiled into your application at

原创 Graphics

Android graphics are powered by a custom 2D graphics library and OpenGL ES 1.0 for high performance 3D graphics. The mo

原创 The AndroidManifest.xml File

Every application must have an AndroidManifest.xml file (with precisely that name) in its root directory. The manifest

原创 SWT:實現自我繪製的Button組件

在所有SWT組件中,Button幾乎是最常用的,其功能在對於一般的情況來說也足夠豐富了。你可以爲Button組件設置要顯示在其中的文本或者圖像、設定ToolTip,甚至只要修改一個風格樣式就能得到一個看上去相當不錯的方向箭頭按鈕。   然

原创 Security and Permissions

Android is a multi-process system, in which each application (and parts of the system) runs in its own process. Most se

原创 多核危機:Scala vs Erlang

近來在博客上關於Scala與Erlang之間的爭論越來越熱。未來註定是多核的世界,問題在於如何去解決多核的危機。Scala和Erlang是兩門渴望成爲其解決方案的語言,但它們也有些許的不同。那麼它們所採取的方式各有什麼利弊呢? 引入問題

原创 Common layout objects

  This section describes some of the more common types of layout objects to use in your applications. Like all layouts,

原创 Erlang,讓我找到了雲計算時代的編程語言

從去年開始研究java併發編程,對java的多線程,各種鎖,線程池都有一定的瞭解。再加上看了一部分周偉明老師的《多核計算與程序設計》和《多核編程藝術》,總感覺多核時代的編程模式讓程序員很痛苦。程序員不對軟件和硬件知識做深入瞭解,要開發出具

原创 Notifying the user

  Several types of situations may arise that require you to notify the user about an event that occurs in your applicat

原创 Data Storage

A typical desktop operating system provides a common file system that any application can use to store files that can b

原创 Intents and Intent Filters

Three of the core components of an application — activities, services, and broadcast receivers — are activated through

原创 How android draws views

  When an Activity receives focus, it will be requested to draw its layout. The Android framework will handle the proc