I have this if code in my activity:
Bundle bundle = getIntent().getExtras();
if (bundle.getBoolean("fourthSection")){
mTitle = getString(R.string.title_section4);
this.setContentView(R.layout.stats);
new uq().execute();
otherLayout = true;
}
How can I get the name of the activity that sends the intent, and to apply the code above only when the first activity's name is equal to "Profile"?
Aucun commentaire:
Enregistrer un commentaire