Introduction to Android(Android简介)

Android provides a rich application framework that allows you to build innovative apps and games for mobile devices in a Java language environment.

 The documents listed in the left navigation provide details about how to build apps using Android's various APIs.

Android提供了丰富的应用框架,允许开发者在java语言环境下开发出具有创新性的手机应用和游戏。左侧导航文档(将持续更新-翻译)提供了如何使用

Android丰富的APIs创建应用。

If you're new to Android development, it's important that you understand the following fundamental concepts about the Android app framework:

如果你是一个新的Android开发者,理解接下来的这些关于Android应用框架的基本概念是非常重要的。

Apps provide multiple entry pointsApps提供了多种接入方式)

Android apps are built as a combination of distinct components that can be invoked individually. For instance, an individual activity provides a single screen for a user interface, and a service independently performs work in the background.

Android应用是由多个可以单独调用的组件组合而成。例如:一个Activity给用户界面提供一个屏幕;Service在后台独立运行工作。

From one component you can start another component using an intent. You can even start a component in a different app, such as an activity in a maps

 app to show an address. This model provides multiple entry points for a single app and allows any app to behave as a user's "default" for an action that

other apps may invoke.

使用Intent可以从一个组件(ActivityServiceContentProviderBroadCastReceiver)调起另一个。你甚至可以调起另一个应用的组件,如:调起地图应用

中显示地址的Activity。这种模式下,对于一个App来说提供了多种接入方式(被呼起),并允许任何应用程序的行为作为用户的“默认”的行为,其他应用程序可以调用。

Apps adapt to different devices(应用程序适配不同设备)

Android provides an adaptive app framework that allows you to provide unique resources for different device configurations. For example, you can create different XML layout files for different screen sizes and the system determines which layout to apply based on the current device's screen size.

Android提供的自适应的应用框架,对不同设备配置提供唯一的资源。例如:你可以给不同屏幕大小的设备创建不同的XML布局文件,系统会根据当前的设备屏幕

大小选择一个最适合的布局文件。

You can query the availability of device features at runtime if any app features require specific hardware such as a camera. If necessary, you can also declare

features your app requires so app markets such as Google Play Store do not allow installation on devices that do not support that feature.

您可以在运行时查询设备功能的可用性,如果任何应用功能需要特定的硬件,如相机。如果需要,你也可以声明你的app需要的功能,由此可以使那些不支持声明

功能的设备不允许在像Google Play的应用市场上安装你的应用。

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Contents Acknowledgments xxxi About the Authors xxxiii Introduction 1 Who Should Read This Book 1 Key Questions Answered in This Book 2 How This Book Is Structured 2 An Overview of Changes in This Edition 3 Development Environments Used in This Book 5 Supplementary Materials Available 6 Where to Find More Information 6 Conventions Used in This Book 7 Contacting the Authors 7 I: An Overview of the Android Platform 1 Introducing Android 11 A Brief History of Mobile Software Development 11 Way Back When 11 “The Brick” 13 Wireless Application Protocol (WAP) 15 Proprietary Mobile Platforms 17 The Open Handset Alliance 18 Google Goes Wireless 18 Forming the Open Handset Alliance 19 Manufacturers: Designing Android Devices 19 Mobile Operators: Delivering the Android Experience 20 Apps Drive Device Sales: Developing Android Applications 21 Taking Advantage of All Android Has to Offer 22 The Android Marketplace: Where We Are Now 22 Android Platform Differences 23 Android: A Next-Generation Platform 23 Free and Open Source 25 Familiar and Inexpensive Development Tools 25xii Contents Reasonable Learning Curve for Developers 26 Enabling Development of Powerful Applications 26 Rich, Secure Application Integration 26 No Costly Obstacles for Development 27 A “Free Market” for Applications 27 A Growing Platform 28 The Android Platform 29 Android’s Underlying Architecture 29 Security and Permissions 31 Exploring Android Applications 32 Summary 36 Quiz Questions 36 Exercises 36 References and More Information 36 2 Setting Up Your Android Development Environment 37 Configuring Your Development Environment 37 Configuring Your Operating System for Device Debugging 39 Configuring Your Android Hardware for Debugging 39 Upgrading the Android SDK 42 Problems with the Android Software Development Kit 42 Exploring the Android SDK 43 Understanding the An

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值