Application Fundamentals——Android Developers毕业设计(论文)外文资料翻译

上传人:桔**** 文档编号:468653274 上传时间:2023-04-02 格式:DOC 页数:18 大小:87.02KB
返回 下载 相关 举报
Application Fundamentals——Android Developers毕业设计(论文)外文资料翻译_第1页
第1页 / 共18页
Application Fundamentals——Android Developers毕业设计(论文)外文资料翻译_第2页
第2页 / 共18页
Application Fundamentals——Android Developers毕业设计(论文)外文资料翻译_第3页
第3页 / 共18页
Application Fundamentals——Android Developers毕业设计(论文)外文资料翻译_第4页
第4页 / 共18页
Application Fundamentals——Android Developers毕业设计(论文)外文资料翻译_第5页
第5页 / 共18页
点击查看更多>>
资源描述

《Application Fundamentals——Android Developers毕业设计(论文)外文资料翻译》由会员分享,可在线阅读,更多相关《Application Fundamentals——Android Developers毕业设计(论文)外文资料翻译(18页珍藏版)》请在金锄头文库上搜索。

1、毕 业 设 计(论 文)外 文 参 考 资 料 及 译 文译文题目: Application Fundamentals - Android Developers 学生姓名: 学号: 专业: 计算机科学与技术(NIIT) 所在学院: 信息技术学院 指导教师: 职称: 2011年 12月 19日Application FundamentalsAndroid Developers Android applications are written in the Java programming language. The Android SDK tools compile the codealong

2、with any data and resource filesinto an Android package, an archive file with an .apk suffix. All the code in a single .apk file is considered to be one application and is the file that Android-powered devices use to install the application. Once installed on a device, each Android application lives

3、 in its own security sandbox: The Android operating system is a multi-user Linux system in which each application is a different user. By default, the system 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 permiss

4、ions for all the files in an application so that only the user ID assigned to that application can access them. Each process has its own virtual machine (VM), so an applications code runs in isolation from other applications. By default, every application runs in its own Linux process. Android start

5、s 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 must recover memory for other applications. In this way, the Android system implements the principle of least privilege. That is, each application, by d

6、efault, 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 cannot access parts of the system for which it is not given permission. However, there are ways for an application to share data with other applicatio

7、ns and for an application to access system services:Its possible to arrange for two applications to share the same Linux user ID, in which case they 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 proces

8、s and share the same VM (the applications must also be signed with the same certificate). An application can request permission to access device data such as the users contacts, SMS messages, the mountable storage (SD card), camera, Bluetooth, and more. All application permissions must be granted by

9、 the user at install time. That covers the basics regarding how an Android application exists within the system. The rest of this document introduces you to: The core framework components that define your applicationThe manifest file in which you declare components and required device features for y

10、our application. Resources that are separate from the application code and allow your application to gracefully optimize its behavior for a variety of device configurations. Application Components Application components are the essential building blocks of an Android application. Each component is a

11、 different point through which the system can enter your application. Not all components are actual entry points for the user and some depend on 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

12、behavior. There are four different types of application components. Each type serves a distinct purpose and has a distinct lifecycle that defines how the component is created and destroyed. Here are the four types of application components: Activities An activity represents a single screen with a us

13、er interface. For example, an email application might have one activity that shows a list of new emails, another activity to compose an email, and another activity for reading emails. Although the activities work together to form a cohesive user experience in the email application, each one is indep

14、endent of the others. As such, a different application can start any one of these activities (if the email application allows it). For example, a 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 implem

15、ented as a subclass of Activity and you can learn more about it in the Activities developer guide. Services A service is a component that runs in the background 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

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 医学/心理学 > 基础医学

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