I have lots of Fragments and two activities one is main activity that holds every fragments. When i am going to second activity from any fragment its work fine but after that i am pressing back button for come back to my last added fragment in this case i come to home screen . I must have the second activity I can't replace that by fragment.How to come back to the last fragment from activity?
In one more case i must have go to the browser and at browser by pressing back button app directly goes to home screen so how to prevent this ?