so i have two activities, activity 1 and activity 2 and they both extend a BaseDraweractivity
and the BaseDraweractivity
implements navigation drawer inturn, somewhat like this. Now the problem is that i cannot pass a string from activity 1 to activity 2. Ive tried this :
In activity 1:
Intent i = new Intent(activity1.this, activity2.class);
i.putExtra("user", textview.getText().toString());
startActivity(i);
And in activity 2:
Intent intent = getIntent();
String s = intent.getStringExtra("user");
textview1.setText(s);
But textview1
in activity2 remains empty. What is wrong with it and how can i solve it?