You should add the getId(int position) in the adapter.
Ahmad Fadli Basyari

data.get(position).getId();//(data is arraylist)

This line is as u said in getItemId(int position) method in adapter class.

but in this method, we need to add this code and that is where i’m getting error. in this *****.getId();

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.