Use the intent.putExtra to pass the data to an another activity.
Intent intent = new Intent(this, NewActivity.class); configIntentintent.putExtra("questionName", array[selectedPosition]); startActivity(configIntentintent); then in NewActivity get this string using:-
String questionName = ""; Bundle extras = getIntent().getExtras(); if (extras != null) { this.questionName = extras.getString("questionName"); } And set this questionName to setTitle of NewActivity.