企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
> 编写:[kesenhoo](https://github.com/kesenhoo) - 原文:[http://developer.android.com/training/sharing/index.html](http://developer.android.com/training/sharing/index.html) Android程序中很炫的一个功能是程序之间可以互相通信。为什么要重新发明一个已经存在于另外一个程序中的功能呢,而且这个功能并非自己程序的核心部分。 这一章节会讲述一些通常使用的方法来在不同程序之间通过使用[Intent](https://developer.android.com/reference/android/content/Intent.html) APIs与[ActionProvider](https://developer.android.com/reference/android/view/ActionProvider.html)对象来发送与接受content。 ### Lessons - [**给其他App发送简单的数据 - Sending Simple Data to Other Apps**](#) 学习如何使用intent发送text与binary数据给其他app。 - [**接收从其他App返回的数据 - Receiving Simple Data from Other Apps**](#) 学习如何通过Intent在你的app中接收来自其他app的text与binary数据。 - [**给ActionBar增加分享功能 - Adding an Easy Share Action**](#) 学习如何在你的Acitonbar上添加一个分享功能。