Shared Data and Interapplication Communication

本文介绍了Android中三种关键的应用间通信技术:通知(Notifications)、意图(Intents)和内容提供者(Content Providers)。这些技术允许应用程序之间进行消息传递并共享数据。

Android includes thress techiniques for transmitting information from your applications for use elsewhere:

1) Notifications.

2) Intents.

3) Content Providers.

 

Notifications are the standard means by which a mobile device traditionally alerts users. Using the API you can trigger audible alerts, cause vibration, and flash the device's LED, as well as control status bar notification icons.

 

Intents provide a mechanism for message-passing within and between applications. Using Intents you can broadcast a desired action(such as dialing the phone or editing a contact) system-wide for other application to handle. Intents are an important core component of Android.

 

Content Provider to give managed access to your application's private databases. The data stores  for native applications, such as the contact manager, are exposed as Content Providers. so you can create your own applications that read or modify this data.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值