In my application have ten activities.
When I press the back button the 10 screens have saved history. But when I click the next button the new screen doesn’t have any historical data.
How do I maintain a history when click on next button?
My intent code is
Bundle bundle = getIntent().getExtras();
String Group = bundle.getString("GroupApVehicle");
Intent log = new Intent(EngineCompartment.this, FrontAxle.class);
Bundle bun = new Bundle();
bun.putString("Group", Group);
bun.putString("ECSCORE", _StrpretriScoreCount);
System.out.println("Enginegroup" + Group);
bun.putString("TestIDFA", strtestid);
log.putExtras(bun);
startActivityForResult(log,IPC_ID);
I suggest you save your activity state by implementing the
onSaveInstanceState()callback. Chances are after 10 different activities Android attempts to clean up the memory, saving the activity state ensures the OS knows you’d like to keep the history.See here for more information: http://developer.android.com/guide/components/tasks-and-back-stack.html#ActivityState