1
My app has 4 Activitys
.
When I get to the Activity
number 4 user has option to return to Activity
number 2 that this in onStop()
.
The problem is that when I go back to Activity
number 2 she runs again the onCreate()
, creating a new Activity
.
I need you to run only the onStart()
.
imgeditarproduto.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(getApplicationContext(), ProdutosActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
}
});
In short, I want to get back from Activity
number 4 for Activity
number 2.