There is a method in MainActivity :
public void getPositionEdit(int position) { Intent intent = new Intent(this, addNote.class); intent.putExtra("position", position); intent.putStringArrayListExtra("notes", array); startActivityForResult(intent, 1); } There is an adapter in which clicks on RecyclerView components are RecyclerView :
public void onBindViewHolder(final ViewHolder holder, final int position) { holder.mTextView.setText(array.get(position)); holder.mTextView.setOnClickListener (new View.OnClickListener() { @Override public void onClick(View v) MainActivity ma = new MainActivity(); ma.getPositionEdit(position); } }); } After clicking on a component, its position should be read out and transferred to the MainActivity method, in which it will launch a new Activity . How to properly prescribe to work correctly.