5000字英文文献翻译

上传人:壹****1 文档编号:488152565 上传时间:2024-02-15 格式:DOC 页数:32 大小:154KB
返回 下载 相关 举报
5000字英文文献翻译_第1页
第1页 / 共32页
5000字英文文献翻译_第2页
第2页 / 共32页
5000字英文文献翻译_第3页
第3页 / 共32页
5000字英文文献翻译_第4页
第4页 / 共32页
5000字英文文献翻译_第5页
第5页 / 共32页
点击查看更多>>
资源描述

《5000字英文文献翻译》由会员分享,可在线阅读,更多相关《5000字英文文献翻译(32页珍藏版)》请在金锄头文库上搜索。

1、外文及翻译英语原文Android Application FundamentalsAndroid applications are written in the Java programming language. The Android SDK tools compile the codealong with any data and resource filesinto anAndroid package, an archive file with an.apksuffix. All the code in a single.apkfile is considered to be one

2、application and is the file that Android-powered devices use to install the application.Once installed on a device, each Android application lives in its own security sandbox:l The Android operating system is a multi-user Linux system in which each application is a different user.l By default, the s

3、ystem assigns each application a unique Linux user ID (the ID is used only by the system and is unknown to the application). The system sets permissions for all the files in an application so that only the user ID assigned to that application can access them.l Each process has its own virtual machin

4、e (VM), so an applications code runs in isolation from other applications.l By default, every application runs in its own Linux process. Android starts the process when any of the applications components need to be executed, then shuts down the process when its no longer needed or when the system mu

5、st recover memory for other applications.In this way, the Android system implements theprinciple of least privilege. That is, each application, by default, has access only to the components that it requires to do its work and no more. This creates a very secure environment in which an application ca

6、nnot access parts of the system for which it is not given permission.推荐精选However, there are ways for an application to share data with other applications and for an application to access system services:l Its possible to arrange for two applications to share the same Linux user ID, in which case the

7、y are able to access each others files. To conserve system resources, applications with the same user ID can also arrange to run in the same Linux process and share the same VM (the applications must also be signed with the same certificate).l An application can request permission to access device d

8、ata such as the users contacts, SMS messages, the mountable storage (SD card), camera, Bluetooth, and more. All application permissions must be granted by the user at install time.That covers the basics regarding how an Android application exists within the system. The rest of this document introduc

9、es you to:l The core framework components that define your application.l The manifest file in which you declare components and required device features for your application.l Resources that are separate from the application code and allow your application to gracefully optimize its behavior for a va

10、riety of device configurations. Application ComponentsApplication components are the essential building blocks of an Android application. Each component is a different point through which the system can enter your application. Not all components are actual entry points for the user and some depend o

11、n each other, but each one exists as its own entity and plays a specific roleeach one is a unique building block that helps define your applications overall behavior.推荐精选There are four different types of application components. Each type serves a distinct purpose and has a distinct lifecycle that de

12、fines how the component is created and destroyed.Here are the four types of application components:ActivitiesAnactivityrepresents a single screen with a user interface. For example, an email application might have one activity that shows a list of new emails, another activity to compose an email, an

13、d another activity for reading emails. Although the activities work together to form a cohesive user experience in the email application, each one is independent of the others. As such, a different application can start any one of these activities (if the email application allows it). For example, a

14、 camera application can start the activity in the email application that composes new mail, in order for the user to share a picture.An activity is implemented as a subclass ofActivityand you can learn more about it in theActivitiesdeveloper guide.ServicesAserviceis a component that runs in the back

15、ground to perform long-running operations or to perform work for remote processes. A service does not provide a user interface. For example, a service might play music in the background while the user is in a different application, or it might fetch data over the network without blocking user intera

16、ction with an activity. Another component, such as an activity, can start the service and let it run or bind to it in order to interact with it.推荐精选A service is implemented as a subclass ofServiceand you can learn more about it in theServicesdeveloper guide.Content providersAcontent providermanages a shared set of application data. You can store the data in the file s

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 资格认证/考试 > 自考

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号