シンプルなデータの共有
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Android アプリの優れている点の一つは、アプリ同士が通信し、統合できることです。アプリのコアではない機能がすでに別のアプリに存在するのに、その機能を作り直す理由は何でしょうか。
このセクションでは、Intent
オブジェクトを指定して Android Sharesheet とインテント リゾルバを使用し、アプリ間でシンプルなデータ(テキスト、画像、ファイルなど)を送受信する一般的な方法について説明します。
レッスン
- 他のアプリにシンプルなデータを送信する
- Android Sharesheet とインテント リゾルバを使用して、テキストやその他のデータを他のアプリに送信できるようにアプリを設定する方法について説明します。
- 他のアプリからシンプルなデータを受信する
- インテントからテキストやその他のデータを受け取るようにアプリをセットアップする方法を学習します。
注: ActionProvider
を使用してアプリ内で共有アクションを表示することはおすすめしません。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[null,null,["最終更新日 2025-07-27 UTC。"],[],[],null,["# Sharing simple data\n\nOne of the great things about Android apps is their ability to communicate and\nintegrate with each other. Why reinvent functionality that isn't core to your application when it\nalready exists in another application?\n\nThis section covers some common ways you can send and receive simple data (like text, images and files) between\napplications using the Android Sharesheet and Intent Resolver with\n[Intent](/reference/android/content/Intent) objects.\n\nLessons\n-------\n\n**[Sending Simple Data to Other Apps](/training/sharing/send)**\n: Learn how to set up your application to be able to send text and other data to other\n applications with the Android Sharesheet and intent resolver.\n\n**[Receiving Simple Data from Other Apps](/training/sharing/receive)**\n: Learn how to set up your application to receive text and other data from intents.\n\nNote: use of [ActionProvider](/reference/android/view/ActionProvider)\nto show share actions within your application is highly discouraged."]]