I have an Activity called A and some event on Activity A calls Activity B. Now when I use the up-navigation in the Activity B, it comes back to Activity A but also calls the onCreate method. If I use the hardware/soft keys for the back, it does not call the onCreate and just comes back to Activity A where it was left. How do I make the up-navigation behave the same way?
My onCreate makes network calls asynchronously. Making another call just wastes data and time. This is the code I use to launch activity B from activity A.
Intent intent = new Intent(MainActivity.this, newsIndexActivity.class);
intent.putExtra("CityName", cityName.getText());
startActivity(intent);