Calling the arrow and allowing back function to return to the parent activity which is the mainActivity (first screen)

This commit is contained in:
BGbaderguet 2020-11-08 18:18:55 +01:00
parent 9a92544df0
commit 6ff8e099eb

View File

@ -8,7 +8,8 @@ import android.os.Bundle;
public class AddCity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.add_city_page);
Toolbar toolbarAddCity = (Toolbar) findViewById(R.id.toolbarAddCity);