[Solved] Android listview selected item while button click [closed]

First you take the text of the textView in a String and then (I guess you have to send it to other activity if im r8 then do as i do it in the following code) String xyz = textView.getText().toString(); button = (Button) findViewById(R.id.button); button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // TODO … Read more