Skip to content
Advertisement

I can’t get the text from edittext in recycler view java by using recycler view adapter with .get(position)

I am new to java programming. I am trying to create a chatting application and now i want to get the the text in a specific RecyclerView layout EditText. I have used the below code as the recycler view adapter code. But it is showing error on getting the mImagenames.get(position) in line 60. I need mImageNames.get(position) work correctly. Any help is deeply appreciated. Thanks in Advance

JavaScript

Advertisement

Answer

After looking at your code it is clear that you are trying to pass object with intent

JavaScript

try this if you want to pass the name. and if you want to pass the object to next activity you can make that class parcelable .

Check out this https://stackoverflow.com/a/7181792/3995126 for more details

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement