Method for go previous activity
If you make connection between first and second activity, this means, you can go to from first activity to second activity
but you can not return to previous page, for return to first page, we can use very common method,
Where you want to use button for return from second to first, open your
1 2 3 4 5
Then we getting, what is the
android:onClick name, you can give the what you want name for
onClick but can be
careful for use in
SecondActivity.java write below code
1 2 3
That ’s all, now you can go back to previous activity.
I hope helped to you.