It's about time for us to actually use channels on our RSS Reader. In this chapter, we will add a new search feature to it, and will use channels to search all the outlets that we have configured at once.
Channels in action
Adding a search activity
First, let's copy the layout file activity_main.xml and name that copy activity_search.xml:
![](https://static.packt-cdn.com/products/9781788627160/graphics/assets/f46792cb-5760-4e11-b542-81a7fdf92967.png)
Once that is done, let's create a new Kotlin file, and name it SearchActivity:
![](https://static.packt-cdn.com/products/9781788627160/graphics/assets/45d2ffc2-e26b-4b79-9c1a-1298b99d4c7d.png)
Now we will create an activity inside that file. Initially, we want it to simply inflate the layout that we just created:
class SearchActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout...