今天准备开始毕业设计--做一个android应用。无奈android基础木有一点,以前做过一个蓝牙应用,不过对android各方面的知识还是不懂啊,今天在android主页上看英文的android开发介绍,那么爽啊!特地摘录一点。 网址(http://developer.android.com/guide/index.html)
Android apps are written in the Java
programming language. The Android SDK tools compile your code—along with
any data and resource files—into an APK: an Android package, which
is an archive file with an .apk
suffix. One APK
file contains all the contents of an Android app and is the file that
Android-powered devices use to install the app.
An app can request permission to access device data such as the user‘s contacts, SMS messages, the mountable storage (SD card), camera, Bluetooth, and more. All app permissions must be granted by the user at install time.---这个原来就是我们平时安装安卓应用时会提示你获取一些权限,然后你点安装。
Therefore, unlike apps on most other systems, Android apps don‘t
have a single entry point (there‘s
nomain()
function,
for example).
Because the system runs each app in a separate process with file permissions that restrict access to other apps, your app cannot directly activate a component from another app. The Android system, however, can. So, to activate a component in another app, you must deliver a message to the system that specifies your intent to start a particular component. The system then activates the component for you. --- Intent的含义我感觉是从这里来。
四大组件(components):
Here are the four types of app components:
Activity
and
you can learn more about it in the Activitiesdeveloper
guide.A service is implemented as a subclass of Service
and
you can learn more about it in the Services developer
guide.
ContactsContract.Data
)
to read and write information about a particular person.
Content providers are also useful for reading and writing data that is private to your app and not shared. For example, the Note Pad sample app uses a content provider to save notes.
A content provider is implemented as a subclass of ContentProvider
and
must implement a standard set of APIs that enable other apps to perform
transactions. For more information, see the Content
Providersdeveloper guide.
A broadcast receiver is implemented as a subclass of BroadcastReceiver
and
each broadcast is delivered as an Intent
object.
For more information, see the BroadcastReceiver
class.
Three of the four component types—activities, services, and broadcast receivers—are activated by an asynchronous message called an intent. Intents bind individual components to each other at runtime (you can think of them as the messengers that request an action from other components), whether the component belongs to your app or another.
原文:http://www.cnblogs.com/echobfy/p/3548662.html