Tài liệu lập trình android tiếng việt đầy đủ

246 2.2K 6
Tài liệu lập trình android tiếng việt đầy đủ

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Tài liệu Lập trình Android bằng tiếng việt được làm bằng Powerpoint khá dễ đọc, gồm 694 trang.

Android Development Introduction Notes are based on: Unlocking Android by Frank Ableson, Charlie Collins, and Robi Sen. ISBN 978-1-933988-67-2 Manning Publications, 2009. & Android Developers http://developer.android.com/index.html 1 Chapter 1 - Goals THE BIG PICTURE – What is Android? – Overview development environment 2 Chapter 1 - Resources Android’s web page 3 http://www.android.com/ What is Android? • Android is an open-source software platform created by Google and the Open Handset Alliance. • It is primarily used to power mobile phones. • It has the capability to make inroads in many other (non-phone) embedded application markets. 4 What is Android? • Android™ consists of a complete set of software components for mobile devices including: – an operating system, – middleware, and – embedded key mobile applications – a large market. 5 Why Android? Listen from the project creators/developers (2.19 min) – Nick Sears. Co-founder of Android – Steve Horowitz. Engineering Director – Dam Morrill. Developer – Peisun Wu. Engineering Project Manager – Erick Tseng. Project Manager – Iliyan Malchev. Engineer – Mike Cleron. Software Manager – Per Gustafsson. Graphics Designer. – etc… • http://www.youtube.com/watch?v=6rYozIZOgDk&eurl=http://www.android.com/about/&feature=player_embedded • You will hear statements such as “…currently it is too difficult to make new products … open software brings more innovation … choices … lower costs … more applications such as family planner, my taxes, understand my wife better, … ” 6 What is Open Handset Alliance? • Quoting from www.OpenHandsetAlliance.com page • “… Open Handset Alliance™, a group of 47 technology and mobile companies have come together to accelerate innovation in mobile and offer consumers a richer, less expensive, and better mobile experience. • Together we have developed Android™, the first complete, open, and free mobile platform. • We are committed to commercially deploy handsets and services using the Android Platform. “ 7 Open Handset Alliance Members Operators Software Co. Commercializat. Semiconductor Handset Manf China Mobile China Unicom KDDI Corp. NTT DoCoMo Sprint Nextel T-Mobile Telecom Italia Telefónica Vodafone Softbank … Ericsson Ascender Corp. eBay Esmertec Google LivingImage NMS Comm. Nuance Comm. PacketVideo SkyPop SONiVOX … Borqs Aplix Noser Engineering Astonishing Tribe Wind River Systems Omron Software … Teleca Audience Broadcom Corp. Intel Corp. Marvell Tech. Group Nvidia Corp. Qualcomm SiRF Tech. Holdings Synaptics Texas Instr. AKM Semicond. ARM Atheros Comm . EMP ACER ASUS HTC LG Motorola Samsung ASUSTek Garmin Huawei Tech LG Samsung … Sony Ericsson Toshiba 8 See Android Developers Short video (4 min.) Showing Dave Bort and Dan Borstein, two members of the Android Open Source Project talk about the project. 9 http://www.youtube.com/watch?v=7Y4thikv-OM The Android Platform Again, what did they say about Android? • Android is a software environment built for mobile devices. • It is not a hardware platform. • Android includes: ● Linux kernel-based OS, ● a rich UI, ● telephone functionality, ● end-user applications, ● code libraries, ● application frameworks, ● multimedia support, . • User applications are built for Android in Java. 10 [...]... IDE 17 Android Components 18 Android Components Video 1/3: Android s Architecture Presented by Mike Cleron, Google Corp (13 min) Available at: http://www.youtube.com/watch?v=QBGfUs9mQYY 19 Android Components Video 2/3: Application’s Life Cycle Presented by Mike Cleron, Google Corp (8 min) Available at: http://www.youtube.com/watch?v=fL6gSd4ugSI&feature=channel 20 Android Components Video 3/3: Android s... http://www.youtube.com/watch?v=MPukbH6D-lY&feature=channel 21 Android Application Framework Video: Inside the Android Application Framework (about 52 min) Presented by Dan Morrill – Google At Google Developer Conference San Francisco - 2008 Available at: http://sites.google.com/site/io/inside-the -android- application-framework Android is designed to be fast, powerful, and easy to develop for This session will discuss the Android application... Inside Android: Intents • Chủ đề quan trọng hay gặp trong phát triển ứng dụng Android là Intent • Một Intent trong Android mô tả cái ta muốn làm • Có thể là – – – “Tôi muốn tra cứu một mục trong contact record,” hoặc “Hãy mở website này,” hoặc “Mở màn hình khẳng định đơn đặt hàng.” • Tầm quan trọng của intent : chúng cho phép di chuyển điều khiển trong ứng dụng và là khía cạnh quan trọng nhất trong lập trình. .. Virtual Machine • User application, cũng như các ứng dụng core Android, được viết bằng Java và được dịch thành byte code • Android byte code được thông dịch tại thời gian chạy bởi máy ảo Dalvik (Dalvik virtual machine) • Tại sao dùng một máy ảo khác? – Các file bytecode Android tương đương về lô-gic với Java bytecode, nhưng chúng cho phép Android ● ● Chạy các ứng dụng trong môi trường ảo của riêng nó,... Psychologist / Mentor / Adviser ???? 13 Android vs Competitors 1.Apple Inc 2.Microsoft 3.Nokia 4.Palm 5.Research In Motion 6.Symbian 14 The Size of the Mobile Market http://gizmodo.com/5489036/ cellphone-overshare [see appendix] 15 15 Android Components (Stack) • The Android stack includes a large array of features for mobile applications • It would be easy to confuse Android with a general purpose computing... startActivity(myIntent); 34 Example of Intent (1) Intent uses ACTION_VIEW to see Contacts 35 Example of Intent (1) • Complete code to see Contacts package matos.cis493; import android. app.Activity; import android. content.Intent; import android. net.Uri; import android. os.Bundle; public class AndDemo1 extends Activity { /** show contact list */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);... develop for This session will discuss the Android application framework in depth, showing you the machinery behind the application framework explains the life-cycle of an android apk very good! 22 Android Components Video: An Introduction to Android (about 52 min) Presented by Jason Chen – Google At Google Developer Conference San Francisco - 2008 Available at: http://www.youtube.com/watch?v=x1ZZ-R3p_w8... action cần thực hiện — hoặc, đối với các broadcast intent, action đã xảy ra và đang được báo cáo kết quả (ví dụ: ACTION_VIEW, ACTION_CALL, ACTION_TIMEZONE_CHANGED, … ) 3 Data URI của dữ liệu cần xử lý và kiểu MIME của dữ liệu đó (ví dụ tel:/216 5551234 , "http://maps.google.com”, ) 4 Category một string chứa các thông tin bổ sung về loại component cần xử lý intent (ví dụ CATEGORY_BROWSABLE, CATEGORY_LAUNCHER,... trọng của intent : chúng cho phép di chuyển điều khiển trong ứng dụng và là khía cạnh quan trọng nhất trong lập trình Android 27 Intents & IntentFilters • An Intent is a declaration of need • Một Intent bao gồm các mẩu thông tin sau: – – – action hay service muốn thực hiện, data – dữ liệu vào cho action/service đó, và category – loại component nên xử lý intent cùng với các hướng dẫn về cách gọi activity... quan trọng nhất của nó là cho việc gọi activity (launching of activities), có thể coi intent là keo dán giữa các activity Các tham số chính của một intent: Action Data Action cần thực hiện, chẳng hạn: Dữ liệu cần xử lý, chẳng hạn một ACTION_VIEW, địa chỉ trong sổ địa chỉ, biển diễn ACTION_EDIT, dạng môt Uri ACTION_MAIN, v.v 29 Intents & IntentFilters Ví dụ về các cặp action/data của intent: ACTION_VIEW

Ngày đăng: 31/07/2013, 11:27

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan