Android development summary

25 437 0
Android development summary

Đ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

Android là hệ điều hành trên điện thoại di động (và hiện nay là cả trên một số đầu phát HD, HD Player, TV) phát triển bởi Google và dựa trên nền tảng Linux. Trước đây, Android được phát triển bởi công ty liên hợp Android ( sau đó được Google mua lại vào năm 2005). Các nhà phát triển viết ứng dụng cho Android dựa trên ngôn ngữ Java. Sự ra mắt của Android vào ngày 5 tháng 11 năm 2007 gắn với sự thành lập của liên minh thiết bị cầm tay mã nguồn mở, bao gồm 78 công ty phần cứng, phần mềm và viễn thông nhằm mục đính tạo nên một chuẩn mở cho điện thoại di động trong tương lai. Qua bài giảng nảy sẽ giúp các bạn tìm hiểu dc Android là gì và cách để thiết lập các biến,cách lập trình cho android để tạo ra 1 ứng dụng.Tải về và nghiên cứu nhé

Android Development Summary Presenter: Trinh Dang SME: Dung Nguyen Table of Content ▪ Why Android? ▪ Android Development ▪ Android Activity ▪ Android UI and Event ▪ Android ListView and Menu Adapter ▪ Android Web Services ▪ Android SQLite ▪ Android Map and Location 1. Why Android? ▪ Android is a mobile operating system based on the Linux Kernel that is currently developed by Google. ▪ As of July 2013 the Google Play store has had over 1 million Android apps published, and over 50 billion apps downloaded. ▪ At Google I/O 2014, the company revealed that there were over 1 billion active monthly Android users. 2. Android Development ▪ The latest version of Android OS is Android 4.4.2. ▪ Android provides a rich application framework that allows you to build innovative apps and games for mobile devices in a Java language environment. ▪ Eclipse with ADT bundle (or Android Studio) ▪ Android Emulator: Genymotion (Bluestack or Android Virtual Device on Eclipse) 3. Android Activity ▪ An Activity is an application component that provides a screen with which users can interact in order to do something, such as dial the phone, take a photo, send an email, or view a map. ▪ An activity is launched by passing an Intent object to  Context.startActivity()  or Activity.startActivityForResult() 3. Android Activity ▪ It is simple to run one activity from other, and some data need to be sent to the new. Bundle is used to passing data. 4. Android UI and Event ▪ Android UI using a hierarchy of View and ViewGroup nodes, as shown in the diagram beside 4. Android UI and Event ▪ Using an XML layout file to define layout and express the view. ▪ All xml layout files are in ProjectName/res/layout 4. Android UI and Event ▪ Define an event listener and register it with the View class. The View class contains a collection of nested interfaces named On<something>Listener e.g. View.OnClickListener(). These interfaces, called event listeners. ▪ Override an existing callback method for the View e.g. onTouchEvent(). This is usewhen implementing own View class. This way is called event handlers 5. Android ListView and Menu Adapter [...]... /data/data/app.package/databases/your-db-name 7 Android SQLite ▪ Insert data public long insert (String table, String nullColumnHack, ContentValues values) ▪ Update data: update(String table, ContentValues values, String whereClause, String[] whereArgs) ▪ Delete data: public int delete (String table, String whereClause, String[] whereArgs) 8 Android Map and Location 8 Android Map and Location 8 Android Map and Location ▪... called only the first time the Options Menu is opened ▪ Handle select a menu item from the Options Menu by override method onOptionsItemSelected (MenuItem item) 6 Android Web Services ▪ Parsing XML data –DOM –SAX Android SAX –XML Pull 6 Android Web Services ▪ Parsing JSON data ▪ JSON library ▪ GSON library ▪ Gson is a Java library that can be used to convert Java Objects into its JSON representation...5 Android ListView and Menu Adapter ▪ Bind data source into ListView  SimpleAdapter for static data (Maps)  SimpleCursorAdapter for Cursor query result 5 Android ListView and Menu Adapter SimpleCursorAdapter class  Specify columns  Specify views to display the columns  Specify... used to convert a JSON string to an equivalent Java object Gson can work with arbitrary Java objects including pre-existing objects that you do not have source-code of 7 Android SQLite ▪ SQLite is a database support structured data ▪ Android provides full support for SQLite databases Any databases you create will be accessible by name to any class in the application, but not outside the application ▪... to)Constructor 5 Android ListView and Menu Adapter Menu Adapter Options Menu: The primary menu for an Activity, which appears when the user presses the device MENU key Context Menu: a floating list of menu items that appears when the user performs a long-press on a View Submenu: a floating list of menu items that the user opens by pressing a menu item in the Options Menu or a context menu 5 Android ListView . Android Development Summary Presenter: Trinh Dang SME: Dung Nguyen Table of Content ▪ Why Android? ▪ Android Development ▪ Android Activity ▪ Android UI and Event ▪ Android ListView. Activity ▪ Android UI and Event ▪ Android ListView and Menu Adapter ▪ Android Web Services ▪ Android SQLite ▪ Android Map and Location 1. Why Android? ▪ Android is a mobile operating system based on the Linux. million Android apps published, and over 50 billion apps downloaded. ▪ At Google I/O 2014, the company revealed that there were over 1 billion active monthly Android users. 2. Android Development ▪ The

Ngày đăng: 23/07/2014, 10:12

Mục lục

  • Slide 1

  • Table of Content

  • 1. Why Android?

  • 2. Android Development

  • 3. Android Activity

  • 3. Android Activity

  • 4. Android UI and Event

  • 4. Android UI and Event

  • 4. Android UI and Event

  • 5. Android ListView and Menu Adapter

  • 5. Android ListView and Menu Adapter

  • 5. Android ListView and Menu Adapter

  • 5. Android ListView and Menu Adapter

  • 5. Android ListView and Menu Adapter

  • 6. Android Web Services

  • Slide 16

  • 6. Android Web Services

  • 7. Android SQLite

  • Slide 19

  • 7. Android SQLite

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

  • Đang cập nhật ...

Tài liệu liên quan