Like the title, if I press a button inside the listview I want that send the position of the button to another activity
I don't know what code do you want to check what I did.
I put the method when the button is pressed, this method is inside the listadapter
listHolderRiepilogo.btnNota.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new Intent(v.getContext() ,Pop_Nota.class);
i.putExtra("posizione", ---WHAT TO PUT HERE---);
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(i);
}
});