Android官方文档阅读之旅——Introduction to Android

Android官方文档阅读之旅——Introduction to Android

原文地址:http://developer.android.com/guide/index.html

前言

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环境中构建富有创意的手机应用或者手机游戏。在文档左边所展示出的导航栏提供了如何利用这些API构建应用的具体细节。

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 points(多入口应用)

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提供了一个作为UI界面的独立窗口,而一个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来启动另一个组件。你甚至可以在其他应用中启动一个组件,如打开地图应用中一个用于显示地址的Activity。这个模块为此应用提供了多种入口,并且允许任何应用通过这样的调用其他应用模块的方式达到如同执行一个用户的默认行为的效果。

Learn more:

App Fundamentals

Intents and Intent Filters

Activities

查看更多:

应用基础知识

Intent 和 Intent 过滤器

Activites

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.

如果应用需要诸如摄像头这种特定的硬件设备,那么你可以在运行时查询此手机是否支持。如有必要,你也可以在应用市场中(如Google Play商店)对外声明你的应用运行要求,并且禁止不具备此要求的手机进行安装。

Learn more:

Device Compatibility
Resources Overview

User Interface Overview

查看更多:

兼容不同设备

资源概述

UI界面概述

————————————————————————————

由于笔者水平有限,内容仅供参考,如有翻译不当之处,欢迎指正

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值