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

Handle shared data with an intent filter - Android Tutorial

From the course: Android Development Essential Training: Your First App with Kotlin

Start my 1-month free trial

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