From 5f0093e6171c564b5e6250fab6135bb7a7d68513 Mon Sep 17 00:00:00 2001 From: Yuichi Araki Date: Wed, 13 Sep 2023 16:44:49 +0900 Subject: [PATCH] Share: Receive data from other apps Change-Id: Ia2e2bcb7c733c58adcfc6303cb13ad2faf00efdf --- .idea/runConfigurations/app.xml | 5 +- samples/README.md | 5 +- .../share/src/main/AndroidManifest.xml | 51 +++ .../share/src/main/assets/contact/cat.jpg | Bin 0 -> 41237 bytes .../share/src/main/assets/contact/dog.jpg | Bin 0 -> 30140 bytes .../share/src/main/assets/contact/parrot.jpg | Bin 0 -> 44701 bytes .../share/src/main/assets/contact/sheep.jpg | Bin 0 -> 32500 bytes .../platform/ui/share/receiver/Contact.kt | 50 +++ .../ui/share/receiver/ShareReceiver.kt | 348 ++++++++++++++++++ .../share/receiver/ShareReceiverActivity.kt | 34 ++ .../share/src/main/res/values/strings.xml | 18 + .../src/main/res/xml/sharing_shortcuts.xml | 22 ++ 12 files changed, 530 insertions(+), 3 deletions(-) create mode 100644 samples/user-interface/share/src/main/assets/contact/cat.jpg create mode 100644 samples/user-interface/share/src/main/assets/contact/dog.jpg create mode 100644 samples/user-interface/share/src/main/assets/contact/parrot.jpg create mode 100644 samples/user-interface/share/src/main/assets/contact/sheep.jpg create mode 100644 samples/user-interface/share/src/main/java/com/example/platform/ui/share/receiver/Contact.kt create mode 100644 samples/user-interface/share/src/main/java/com/example/platform/ui/share/receiver/ShareReceiver.kt create mode 100644 samples/user-interface/share/src/main/java/com/example/platform/ui/share/receiver/ShareReceiverActivity.kt create mode 100644 samples/user-interface/share/src/main/res/values/strings.xml create mode 100644 samples/user-interface/share/src/main/res/xml/sharing_shortcuts.xml diff --git a/.idea/runConfigurations/app.xml b/.idea/runConfigurations/app.xml index 47c6198a..41438745 100644 --- a/.idea/runConfigurations/app.xml +++ b/.idea/runConfigurations/app.xml @@ -9,8 +9,9 @@