Android官方文档阅读之旅——Introduction to Android
来源:互联网 发布:deepin 添加ubuntu 源 编辑:程序博客网 时间:2024/06/07 20:09
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界面概述
————————————————————————————
由于笔者水平有限,内容仅供参考,如有翻译不当之处,欢迎指正
- Android官方文档阅读之旅——Introduction to Android
- Android官方文档之Introduction
- Android官方文档阅读之旅——Application Fundamentals
- Android官方文档阅读之旅——Device Compatibility
- Android官方文档阅读之旅——Animation and Graphics Overview 动画与图形概述
- Android官方文档阅读之旅——Property Animation 属性动画
- Android官方文档阅读之旅——Creating a View Class
- Android官方文档阅读记录
- Android-SQLite3_2-官方文档阅读
- Android 官方文档 阅读随记
- Android 官方文档导读(Introduction)
- Android-Android官方文档阅读-Application Fundamentals
- Android OpenCV 官方文档阅读笔记
- 怎么阅读android官方开发文档
- android官方文档之路--Wi-Fi Peer-to-Peer
- android官方文档之路--Wi-Fi Peer-to-Peer
- Introduction to C++ Programming in UE4——UE4官方文档翻译与理解(一)
- Introduction to C++ Programming in UE4——UE4官方文档翻译与理解(二)
- 设计模式系列之二:装饰者模式(Decorator Pattern)
- 个人技术栈书籍
- linux工作环境搭建
- Microsoft Visual Studio 2013 安装离线帮助文档
- [leetcode] 123. Best Time to Buy and Sell Stock III
- Android官方文档阅读之旅——Introduction to Android
- html利用localStorage保存数据
- Python实现堆排序
- Android中SQLite数据库查看及导入导出
- 【南大软院大神培养计划】JS之JQUERY
- 《Python核心编程》第9章 习题
- 关于Ubuntu的环境变量文件
- jspdf.js
- date: 无效的日期"2 days ago+%Y%m%d"-------注意空格啊