Storing list of position in sharedPreferences, and retrieve in another activity
问题 I want to do similar like this, I have used cardview with recyclerview. I added favourite button cardview below you can see the full code. In recyclerview adapter I print the Toast as per position and its working fine, now I need to save the int value of position in shared Preferences in arraylist and display those arraylist in next intent. This is my recyclerview adapter public void onBindViewHolder(NameViewHolder holder, final int position) { holder.textView.setText(names.get(position)