My Opera is closing 1st of March

Mobile Programming

Đang quá trình học hỏi và tìm hiểu ^^!

Tổng quan về Android

Android is a software environment built for mobile devices. It is not a hardware platform.
Android includes a Linux kernel-based OS, a rich UI, end-user applications,
code libraries, application frameworks, multimedia support
, and much more. And,
yes, even telephone functionality is included! While components of the underlying OS
are written in C or C++, user applications are built for Android in Java. Even the builtin
applications are written in Java. (Nguồn: Unlocking Android)



■ A Linux kernel provides a foundational hardware abstraction layer:process, memory, and file-system management. The kernel is where hardware-specific drivers are implemented—capabilities such as Wi-Fi and Bluetooth are found here.

■ libraries:
– Browser technology from WebKit—the same open source engine powering
Mac’s Safari and the iPhone’s Mobile Safari browser
– Database support via SQLite an easy-to-use SQL database
– Advanced graphics support, including 2D, 3D, animation from SGL, and
OpenGL ES
– Audio and video media support from Packet Video’s OpenCore
– SSL capabilities from the Apache project
star Lớp thư viện chính là ngôi nhà để thực hiện các đoạn mã cho các thực thể như bộ xử lý đa phương tiện dùng để xem/ghi lại âm thanh và hình ảnh, Nhân của trình duyệt Web, tiến trình biên dịch kiểu chữ, và bộ máy cơ sở dữ liệu SQLite. Phần runtime của Android cũng trú ngụ tại lớp thư viện

■ Application framework:
– Activities and views
– Telephony
– Windows
– Resources
– Location-based services

■ Application:
Các ứng dụng chạy ở lớp trên cùng của hệ điều hành với một bộ các nhân ứng dụng bao gồm thư điện tử, lịch làm việc, trình duyệt web.

The Android runtime provides:
– Core Java packages for a nearly full-featured Java programming environment.
Note that this is not a J2ME environment.
– The Dalvik virtual machine employs services of the Linux-based kernel to provide an environment to host Android applications

Khi nhà phát triển viết một ứng dụng dành cho Android, đầu tiên thực hiện các đoạn mã trong môi trường Java. Sau đó, nó sẽ được biên dịch sang các bytecode của Java, sau đó để thực thi được ứng dụng này trên Android thì phải chạy trên DALVIK VIRTUAL MACHINE. Đây là công cụ dùng để chuyển đổi bytecode sang một dạng gọi là dex bytecode. "Dex" là từ viết tắt của "Dalvik executable" đóng vai trò như cơ chế ảo thực thi các ứng dụng Android. Máy ảo Dalvik cũng giống như máy ảo Java (Java Virtual Machine). Biên dịch bytecode sang .dex để chạy trên hệ điều hành android. (co`n với JVM từ bytecode sang native code tương ứng của hdh đó cho nên mới gọi "viết 1 lần chạy mọi nơi")

Làm sao một chương trình có thể chạy mọi nơi?Các khái niệm trong ứng dụng Android

Write a comment

New comments have been disabled for this post.