跳到主要內容

What is Android?

Android is a software stack for mobile devices that includes an operating system, middleware and key applications. The Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language.

Features

  • Application framework enabling reuse and replacement of components
  • Dalvik virtual machine optimized for mobile devices
  • Integrated browser based on the open source WebKit engine
  • Optimized graphics powered by a custom 2D graphics library; 3D graphics based on the OpenGL ES 1.0 specification (hardware acceleration optional)
  • SQLite for structured data storage
  • Media support for common audio, video, and still image formats (MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF)
  • GSM Telephony (hardware dependent)
  • Bluetooth, EDGE, 3G, and WiFi (hardware dependent)
  • Camera, GPS, compass, and accelerometer (hardware dependent)
  • Rich development environment including a device emulator, tools for debugging, memory and performance profiling, and a plugin for the Eclipse IDE

Android Architecture

The following diagram shows the major components of the Android operating system. Each section is described in more detail below.
Android System Architecture

Applications

Android will ship with a set of core applications including an email client, SMS program, calendar, maps, browser, contacts, and others. All applications are written using the Java programming language.

Application Framework

By providing an open development platform, Android offers developers the ability to build extremely rich and innovative applications. Developers are free to take advantage of the device hardware, access location information, run background services, set alarms, add notifications to the status bar, and much, much more.
Developers have full access to the same framework APIs used by the core applications. The application architecture is designed to simplify the reuse of components; any application can publish its capabilities and any other application may then make use of those capabilities (subject to security constraints enforced by the framework). This same mechanism allows components to be replaced by the user.
Underlying all applications is a set of services and systems, including:
  • A rich and extensible set of Views that can be used to build an application, including lists, grids, text boxes, buttons, and even an embeddable web browser
  • Content Providers that enable applications to access data from other applications (such as Contacts), or to share their own data
  • A Resource Manager, providing access to non-code resources such as localized strings, graphics, and layout files
  • A Notification Manager that enables all applications to display custom alerts in the status bar
  • An Activity Manager that manages the lifecycle of applications and provides a common navigation backstack
For more details and a walkthrough of an application, see the Notepad Tutorial.

Libraries

Android includes a set of C/C++ libraries used by various components of the Android system. These capabilities are exposed to developers through the Android application framework. Some of the core libraries are listed below:
  • System C library - a BSD-derived implementation of the standard C system library (libc), tuned for embedded Linux-based devices
  • Media Libraries - based on PacketVideo's OpenCORE; the libraries support playback and recording of many popular audio and video formats, as well as static image files, including MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG
  • Surface Manager - manages access to the display subsystem and seamlessly composites 2D and 3D graphic layers from multiple applications
  • LibWebCore - a modern web browser engine which powers both the Android browser and an embeddable web view
  • SGL - the underlying 2D graphics engine
  • 3D libraries - an implementation based on OpenGL ES 1.0 APIs; the libraries use either hardware 3D acceleration (where available) or the included, highly optimized 3D software rasterizer
  • FreeType - bitmap and vector font rendering
  • SQLite - a powerful and lightweight relational database engine available to all applications

Android Runtime

Android includes a set of core libraries that provides most of the functionality available in the core libraries of the Java programming language.
Every Android application runs in its own process, with its own instance of the Dalvik virtual machine. Dalvik has been written so that a device can run multiple VMs efficiently. The Dalvik VM executes files in the Dalvik Executable (.dex) format which is optimized for minimal memory footprint. The VM is register-based, and runs classes compiled by a Java language compiler that have been transformed into the .dex format by the included "dx" tool.
The Dalvik VM relies on the Linux kernel for underlying functionality such as threading and low-level memory management.

Linux Kernel

Android relies on Linux version 2.6 for core system services such as security, memory management, process management, network stack, and driver model. The kernel also acts as an abstraction layer between the hardware and the rest of the software stack.

留言

這個網誌中的熱門文章

17分鐘波段策略

使用中 觀察中 待修正 TXF_17min_1 TXF_17min_2 TXF_17min_3 TXF_17min_4 TXF_17min_5 TXF_17min_6 TXF_17min_7 TXF_17min_8 TXF_17min_9 TXF_17min_10 * TXF_17min_11 TXF_17min_12 TXF_17min_13 TXF_17min_14 * TXF_17min_15

程式交易(文章轉貼)(舊)

這是從網路上看到的有關程式交易的文章,在這轉貼! 程式交易常常容易被神化,…….與污名化,這邊整理一下,小呆的雜感,可以請各位自行評估參考,當然,當參考就好,建議不好是當小呆放屁就好~ 聽聽就好~ 看看就好~ 笑笑就好~ 事先聲明:內容不雅,本文不適合交易贏家瀏覽… 1.程式交易不是快速致富,它是追求細水長流的穩定獲利 !! 來……. 請跟我唸一次,程式交易是追求細水長流的穩定獲利 !! 要一夜致富請加入xx保全公司, 搶的快好利害~ 十分鐘帶走五千萬 !! 或是去買樂透,或是跟有錢人家的兒子女兒結婚…, 要不然也可以參考這篇,白痴也能懂得掏空指南 !! 2.程式交易一定要自己做檢驗,目前市場上販售的程式交易很多,無論使用哪一套,都不要急著拿錢直接下單,至少一定要自己逐筆逐筆的驗證,以小呆自己為例,我大概花了三個月的時間,使用 5分K從2001年08月16號開始,把每一筆的訊號逐一的檢驗,要能確定訊號的出現是”可以成交的到”,(已把每月的結算日跟開新倉,快市滑價這些問題都考慮進去了),然後再花了八個月的時間看盤,實際看盤紀錄來驗證手上這套程式的可行性 !! 請一定要自己做檢驗,否則報表跑出來很漂亮,實際交易時卻慘不忍睹……..,這個真的非常重要,請拜託一定要拿歷史交易紀錄逐一逐一的檢驗,別只看到報表漂亮就全然相信,沒有自己做過功課,年獲利兩千點的程式交易一樣會做到賠錢 !! 3.嚴格的執行:世界上最遙遠的距離,是當我站在你面前而你卻不知道我愛你!程式交易者最深沉的悲哀,是他媽的賠錢的單子都跟到,大賺的單子卻沒做到!這一篇我列出網路上搜尋到的,檢視程式的一些細項,這在透過自己檢驗時可以得知,你目前用的程式試不適合你……. ,每個人可以承受的單筆虧損金額,以及連續虧損次數,可承受的壓力都不一樣!! 它只有適不適合你的操作週期與個性, 沒有辦法符合每個人的需求,.. 4.認清自己的個性,有人天生就是當沖的料,一筆單你要他死抱活抱,三五個月大波段操作,他可能會想死給你看 !! 也有人偏愛中長期波段,他認為交易是要研究總體經濟、財務報表、貨幣利率、政治因素………..,這沒有對錯也無關好壞,在市場中,你只要對你的帳戶金額負責就好,.. 但,你一定要認清自己的個性與操作的時間週期,這非常非常重要!! 5.認清交易沒有聖盃,有人希望每一筆交易都獲利甚至往這個方向努力!! 小呆會說:...