I have an activity with a listview. When the user click the item, the item \"viewer\" opens:
List1.setOnItemClickListener(new OnItemClickListener() {
@Ov
Following Steps are much enough to back button:
Step 1: This code should be in Manifest.xml
Step 2: You won't give
finish();
in your Parent Activity while starting Child Activity.
Step 3: If you need to come back to Parent Activity from Child Activity, Then you just give this code for Child Activity.
startActivity(new Intent(ParentActivity.this, ChildActivity.class));