官术网_书友最值得收藏!

Introduction

The Android SDK provides a powerful tool to program mobile devices, and the best way to master such a tool is to jump right in. Though you can read this book from beginning to end, as it is a cookbook, it is specifically designed to allow you to jump to specific tasks and get the results immediately.

Activities are the fundamental building block of most Android applications as the activity class provides the interface between the application and screen. Most Android applications will have at least one activity, if not several (but they are not required). A background service application will not necessarily require an activity if there is no user interface.

This chapter explains how to declare and launch activities within an application and how to manage several activities at once by sharing data between them, requesting results from them, and calling one activity from within another.

This chapter also briefly explores the intent object, which is often used in conjunction with activities. Intents can be used to transfer data between activities in your own application, as well as in external applications, such as those included with the Android operating system (a common example would be to use an intent to launch the default web browser).

Note

To begin developing Android applications, head over to the Android Studio page to download the new Android Studio IDE and the Android SDK bundle:

http://developer.android.com/sdk/index.html

主站蜘蛛池模板: 兴宁市| 安西县| 南川市| 康定县| 余庆县| 天峻县| 汉源县| 灵川县| 赣榆县| 赫章县| 武夷山市| 太谷县| 长岛县| 儋州市| 黑龙江省| 宾阳县| 农安县| 珠海市| 仁怀市| 武乡县| 朝阳市| 河南省| 宁武县| 武安市| 金乡县| 乌鲁木齐市| 青浦区| 商河县| 浦县| 南平市| 浦东新区| 尼勒克县| 县级市| 育儿| 托克逊县| 临潭县| 竹北市| 宜兴市| 淮南市| 巴里| 长寿区|