I want to create 3 tabs and each one have single fragment,when i press back button in device instead of closing of app i need to go previous tab.I had try a lot but not find correct answer which is suitable for my app.I am new to development.
What i have in my project is 3 tabs when i am at tab 3 if i press it needs to go tab 2 instead of closing app.
What ever suggestions i get those are helped only go back to previous fragment. But i want go to previous tab when we press back button in android device.