RecyclerView - Get the selected position and pass the position to another activity where the same list will appear with that specific item selected
问题 I have declared a ViewModel.class for the RecyclerView an Adapter and I have parsed to the MainActivity and to another Activity so I have the same adapter for both activities. I can show the parsed data in both activities but the problem it is I cannot take the data of the selected item to MainActivity and then to set to that btnSearch for a click so then I can share between activities the data from the selected item. Every time when the app is open the first item is selected. What I am