`
- 浏览:
258996 次
- 性别:
- 来自:
未定
-
1. Android is a software stack for mobile devices that includes an operating system, middleware and key applications. The Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language.
2. Application Fundamentals:
Android applications are written in the Java programming language. The compiled Java code — along with any data and resource files required by the application — is bundled by the aapt tool into an Android package, an archive file marked by an .apk suffix. This file is the vehicle for distributing the application and installing it on mobile devices; it's the file users download to their devices. All the code in a single .apk file is considered to be one application.
3. Application Components
Android applications don't have a single entry point for everything in the application (no main() function, for example). Rather, they have essential components that the system can instantiate and run as needed. There are four types of components:
a. Activities
An activity presents a visual user interface for one focused endeavor the user can undertake. Each one is implemented as a subclass of the Activity base class.
b. Services
A service doesn't have a visual user interface, but rather runs in the background for an indefinite period of time.Each service extends the Service base class.
c. Broadcast receivers
A broadcast receiver is a component that does nothing but receive and react to broadcast announcements.
d. Content providers
A content provider makes a specific set of the application's data available to other applications. The data can be stored in the file system, in an SQLite database, or in any other manner that makes sense. The content provider extends the ContentProvider base class
4. Activating components: intents
Content providers are activated when they're targeted by a request from a ContentResolver. The other three components — activities, services, and broadcast receivers — are activated by asynchronous messages called intents. An intent is an Intent object that holds the content of the message.
分享到:
Global site tag (gtag.js) - Google Analytics
相关推荐
The Android™ Notes for Professionals book is compiled from Stack Overflow Documentation, the content is written by the beautiful people at Stack Overflow. Text content is released under Creative ...
本书《Android Notes for A development Professionals》作为Android开发者的专业参考书,内容覆盖广泛,不仅包含Android原生开发的基础知识,还介绍了多种第三方库和工具,适合想要深入学习Android开发的专业人士...
Android_Learning_Notes 这是我的安卓学习笔记。 开始时间:2016-9-11 计划:一个半月 文章目录: 基础知识 1、Android01--搭建Android开发环境 2、Android02--认识Activity 3、Android03--Context和Application 4、...
【Android学习笔记】 Android,由谷歌公司在2008年推出,是一款基于Linux内核的开源移动操作系统。它主要用于智能手机和平板电脑,但其影响力已扩展到智能电视、汽车、可穿戴设备等多个领域。Android系统的主要编程...
Omni-Notes:开源笔记Android应用程序,有许多功能比如分享,搜索,附加图片,视频,音频,在笔记中涂鸦,添加提醒等。
本文将深入探讨如何利用Android源码来实现一个完整的便签应用,并结合"Android源码Notes.zip"这个压缩包中的内容进行详细讲解。 首先,Android源码中的Notes项目通常包含了用于构建便签应用的所有必要组件。这些...
1. **Android SDK**: Android软件开发工具包是开发Android应用程序的基础,它包含了编写、调试和测试应用所需的所有工具,如Java编译器、Android虚拟机(AVD)管理器以及Android Studio IDE。 2. **布局(Layouts)...
Simple Notes A simple textfield for adding quick notes. Need to take a quick note of something to buy, an address, or a startup idea? Then this is the app you've been looking for! No complicated ...
这份"Android-notes.zip"压缩包显然包含了作者关于Android环境设置和开发学习的一些笔记,是初学者和有经验的开发者都非常宝贵的参考资料。以下是一些可能涵盖的关键知识点: 1. **Android Studio安装与配置**:...
1. **Activity和Fragment**:作为Android应用的核心组件,Activity负责处理用户交互,而Fragment则允许在不同屏幕尺寸和配置下管理界面。Notes应用可能会使用多个Fragment来展示不同的视图,如笔记列表、笔记详情和...
Omni-Notes, Android的开源笔记 omni注意采用开源应用程序既要有简单的接口,又要保持智能行为。项目的灵感来自于缺乏与旧手机和旧版本Android兼容的应用程序。 它旨在提供诱人的外观,并遵循谷歌操作系统最新的设计...
标题中提到的“Android Graphics Performance (Notes)”表明本文档重点是讨论Android平台下的图形性能问题和优化方法。描述部分指出本文档基于Google I/O 2013的资料,涉及Android图形性能的内容。由于内容描述中...
在Android平台上开发一款基于数据存储的记事本应用,涉及到许多关键知识点,这些知识点涵盖了Android应用的基本架构、数据存储机制以及用户界面设计。下面将详细阐述这些内容。 首先,Android应用的基本架构通常...
1. **多线程**:由于Android主线程(UI线程)不能执行耗时操作,开发者需要使用子线程(如AsyncTask)处理,以避免阻塞用户界面。 2. **SQLite数据库**:Android内置了SQLite数据库,用于存储应用的结构化数据。...
《Android Mi_Notes源码解析》 Mi_Notes是一款由小米公司开发的安卓平台上的笔记应用,其源码对于我们深入理解Android应用开发有着极高的学习价值。本文将围绕Mi_Notes的源码展开,深入剖析其核心功能实现、架构...
1. **项目结构**:GitHubNotesDemo-master项目的目录结构会遵循标准的Android项目架构,包括`app`模块、`libs`库、`res`资源文件夹、`src`源代码文件夹等,这有助于保持代码组织清晰。 2. **布局设计**:在`res/...
源码中的Notes文件可能包含了这些组件的实现,我们可以从中学习如何有效地组织和管理应用的不同部分。 1. **Activity**:在小米便签中,Activity是用户界面的主要载体,负责处理用户交互。源码中可能会包含多个...
Fire-Notes A simple android notes app using Google's Firebase as the backend Screenshots Home New Note View Note Edit Fire Note
本文将深度剖析一款名为"Notes"的Android便签应用的源码,帮助开发者更好地理解和学习如何构建高效、实用的便签应用。 首先,我们来探讨一下便签应用的核心功能。一个基本的便签应用通常包括创建、编辑、删除便签,...