Android Getting Started

Building Your First Appandroid

Creating an Android Project 介紹如何Android開發環境,具體是:怎麼使用Eclipse工具sql

            Create a Project with Eclipse數據庫

            Create a Project with Command Line Tools工具

Running Your Application 介紹Android應用程序的運行和模擬器佈局

        Run on a Real Deviceui

            Run on the Emulatorspa

Building a Simple User Interface 介紹Android應用程序中的基本控件和佈局rest

            Create a Linear Layoutorm

            Add a Text Fieldsqlite

            Add String Resources

            Add a Button

            Make the Input Box Fill in the Screen Width

Starting Another Activity 介紹Activity之間的交互,包括:Activity的建立和啓動,以及數據傳遞

            Respond to the Send Button

            Build an Intent

            Start the Second Activity

            Create the Second Activity

            Receive the Intent

            Display the Message

Adding the Action Bar

Setting Up the Action Bar  介紹 Action Bar相關的支持包

        Support Android 3.0 and Above Only

            Support Android 2.1 and Above

Adding Action Buttons 介紹如何在Android應用程序中增長 Action Bar

            Specify the Actions in XML

            Add the Actions to the Action Bar

            Respond to Action Buttons

            Add Up Button for Low-level Activities

Styling the Action Bar 介紹如何製做出"別具一格"的Action Bar

            Use an Android Theme

            Customize the Background

            Customize the Text Color

            Customize the Tab Indicator

Overlaying the Action Bar 介紹Action Bar的覆蓋模式,包括:隱藏/顯示

            Enable Overlay Mode

                For Android 3.0 and higher only

                For Android 2.1 and higher

            Specify Layout Top-marginSupporting Different Devices

            Supporting Different Languages 介紹Android應用程序的國際化

            Create Locale Directories and String Files

            Use the String Resources

Supporting Different Screens 介紹Android應用程序如何適配不一樣的屏幕

            Create Different Layouts

            Create Different Bitmaps

Supporting Different Platform Versions 介紹Android應用程序和SDK相關的版本

    Specify Minimum and Target API Levels

    Check System Version at Runtime

    Use Platform Styles and Themes

Managing the Activity Lifecycle

    Starting an Activity 介紹Activity相關的基礎知識

    Understand the Lifecycle Callbacks 

    Specify Your App's Launcher Activity

    Create a New Instance

    Destory the Activity

    Pausing and Resuming an Activity 介紹Activity組件的pausing/resuming狀態

    Pause Your Activity

    Resume Your Activity

    Stopping and Restarting an Activity 介紹Activity組件的stop/restart狀態

    Stop Your Activity

    Start/Restart Your Activity

    Recreating an Activity 介紹銷燬和重建Activit實例的行爲

    Save Your Activity State

    Restore Your Activity State

Building a Dynamic UI with Fragments

Creating a Fragment 介紹在Android應用程序中建立Fragment

Create a Fragment Class

Add a Fragment to an Activity using XML

Building a Flexible UI 介紹如何在Activity中使用Fragment

Add a Fragment to an Activity at Runtime

Replace One Fragment with Another

Communicating with Other Fragments 介紹Fragment之間的互動

Define an Interface

Implement the Interface

Deliver a Message to Fragment

Saving Data

Saving Key-Value Sets 介紹在Android中如何存儲鍵值對

Get a Handle to a SharedPreferences

Write to Shared Preferences

Read from Shared Preferences

Saving Files --> Linux file system & Java input/output APIs 介紹Android應用程序中的文件存儲系統

Choose Internal or External Storage

Obtain Permissions for External Storage

Sava a File on External Storage

Query Free Space

Delete a File

Saving Data SQL Databases --> android.database.sqlite 介紹Android應用程序中的SQLite數據庫

Define a Schema and Contract

Create a Database Using a SQL Helper

Put Information into a Database

Read Information from a Database

Delete Information from a Database

Update a Database

Interacting with other Apps 

Sending the User to Another App 介紹從一個應用程序跳轉到另外一個應用程序

Build an Implicit Intent

Verify There is an App to Receive the Intent

Start an Activity with the Intent

Show a App Chooser

Getting a Result from an Activity 介紹如何從一個應用程序中獲取返回值

Start the Activity

Receive the Result

Bonus: Read the contact data

Allowing Other Apps to Start Your Activity 介紹如何讓應用程序被其餘程序打開

Add an Intent Filter

Handle the Intent in Your Activity

Return a Result

相關文章
相關標籤/搜索