Android開發入門

來源:互聯網
上載者:User

標籤:des   android   style   http   io   ar   sp   for   檔案   

Getting Started

Welcome to Training for Android developers. Here you‘ll find sets of lessons within classes that describe how to accomplish a specific task with code samples you can re-use in your app. Classes are organized into several groups you can see at the top-level of the left navigation.

This first group, Getting Started, teaches you the bare essentials for Android app development. If you‘re a new Android app developer, you should complete each of these classes in order:

有言在先

作為一名Windows程式員,不管是為以後的職業生涯打算,還是為了擴充技術視野,學習和掌握一些終端的開發技術總是有益無害的。而作為一名Android的新手,前輩給我的意見是“先不用急著買這書買那書,把Android官網上的入門教程看完了再說”。

個人鬥膽在教程原文的基礎上補充了一些學習過程中的心得體會,畫蛇添足地整理出以下這些批註性的文章。


在啟動學習之前,首先要把開發環境部署好:

Building Your First App 構建你的第一個應用
After you‘ve installed the Android SDK, start with this class to learn the basics about Android app development.
  • Creating an Android Project
  • Running Your Application
  • Building a Simple User Interface
  • Starting Another Activity
在你安裝了Android SDK之後,開始這個課程以便學習android 程式開發的基本知識。
  • 用 Eclipse 建立一個 Android 工程
  • 運行你的應用
  • 構建一個簡單的使用者介面
  • 啟動另一個活動

Managing the Activity Lifecycle 生命週期的管理
How Android activities live and die and how to create a seamless user experience by implementing lifecycle callback methods.
  • Starting an Activity
  • Pausing and Resuming an Activity
  • Stopping and Restarting an Activity
  • Recreating an Activity
在這裡,你將瞭解到android activities 是如何live和die的,以及如何利用生命週期回呼函數完成無縫的使用者體驗。



  • 啟動Activity
  • 暫停和恢複 Activity
  • 停止和重啟Activity
  • 重建Activity
Supporting Different Devices 多裝置支援
How to build your app with alternative resources that provide an optimized user experience on multiple device form factors using a single APK.
  • Supporting Different Languages
  • Supporting Different Screens
  • Supporting Different Platform Versions
如何通過配置多樣的資源檔來構建程式,以最佳化一個APK檔案在不同裝置上的使用者體驗。
  • 多語言支援
  • 多螢幕支援
  • 不同平台版本支援
Building a Dynamic UI with Fragments 通過片段建立靈活的使用者介面
How to build a user interface for your app that is flexible enough to present multiple UI components on large screens and a more constrained set of UI components on smaller screens—essential for building a single APK for both phones and tablets.
  • Using the Support Library
  • Creating a Fragment
  • Building a Flexible UI
  • Communicating with Other Fragments
如何靈活的構建程式的使用者介面以在大屏裝置上展現複雜的UI組件,而在小屏裝置上展現相對緊湊的UI組件——這在用同一個APK檔案來適配手機和平板上顯得非常重要。
  • 利用android支援的庫
  • 建立一個片段
  • 建立一個靈活的使用者介面
  • 與其他片段互動
Saving Data 資料存放區
How to save data on the device, whether it‘s temporary files, downloaded app assets, user media, structured data, or something else.
  • Saving Key-Value Sets
  • Saving Files
  • Saving Data in SQL Databases
如何在裝置上儲存諸如臨時檔案、下載的app資源、使用者媒體資料、結構化資料等你想存的東西
Interacting with Other Apps 與其他應用程式進行互動
How to build a user experience that leverages other apps available on the device to perform advanced user tasks, such as capture a photo or view an address on a map.
  • Sending the User to Another App
  • Getting a Result from the Activity
  • Allowing Other Apps to Start Your Activity
如何利用裝置上其他可用的程式完成諸如拍照,查看地圖上的位置等使用者行為。
  • 讓使用者轉移到另一個應用程式
  • 從另一個Activity中取回反饋結果
  • 允許其他應用程式去啟動您的Activity
Sharing Content 內容共用
How to take your app interaction to the next level by sharing information with other apps, receive information back, and provide a simple and scalable way to perform Share actions with user content.
  • Sending Content to Other Apps
  • Receiving Content from Other Apps
  • Adding an Easy Share Action
如何通過與其他應用共用資料,接受來自其他應用的資料和提供一種簡單而具有可擴充性的方式來完成分享使用者內容的動作(好繞口)來把你的應用提高到更高的層次——社交應用(誤,不過這樣感覺牛X點)。
  • 將內容發送到其他應用程式
  • 從其他應用程式接收內容
  • 添加一個簡單的共用行動

Android開發入門

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.