From the course: Android Development Essential Training: Your First App with Kotlin
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Handle shared data with an intent filter - Android Tutorial
From the course: Android Development Essential Training: Your First App with Kotlin
Handle shared data with an intent filter
- [Instructor] When you send data from one activity to another using an intent, that's called an explicit intent within your application, but when you pass data from application to application, that uses something called implicit intents. An intent that sends the data without knowing which application or activity is going to handle it. Your own application can register to handle these kinds of intents. You do this in the application manifest. I'm going to set up my DetailActivity so that it can receive data from other applications on the device and specifically it'll be looking for simple text. It'll translate that simple text into a request to display a particular image. I'll start in my manifest file and I'll turn my DetailActivity declaration into an opening and closing tab. Then, I'll make a copy of this intent filter from the MainActivity and then I'll paste it into the DetailActivity. I'll reset the action and the category's name. When any application sends simple text for…
Contents
-
-
-
-
-
-
(Locked)
Define screens with activities4m 2s
-
(Locked)
Implement designs in XML layouts3m 59s
-
(Locked)
Use the View and ViewGroup components3m 28s
-
(Locked)
Display an image in an activity4m 36s
-
Convert PNG and SVG image files3m 48s
-
(Locked)
Start new activities with intents4m 25s
-
(Locked)
Send an action to a new activity4m 32s
-
(Locked)
Send data URIs and extras with intents6m 50s
-
(Locked)
Handle shared data with an intent filter5m 39s
-
(Locked)
-