I have an activity called Place
I am returning to Placeactivity from my previous action called City.
I added a back button to the toolbar Placewith the following code:
Toolbar mToolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(mToolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true)
I want the back button to return to Cityactivity
But for the operation City, some parameters are needed, which must be passed to it.
So, how to tell the "Back" button to go to the "City Activity", without having to pass parameters to it.
source
share