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:
Once that is done, let's create a new Kotlin file, and name it SearchActivity:
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...