I have an app that is mainly based on fragments. Each fragment involves it's own json parsing and image loading from json.Also to be noted that I have called addToBackStack(null) on ech fragment when it's getting replaced. As I switch between the fragments, and press the back button, it takes quite some time 4-5 secs to be exact to load the previous fragment. Is there any way that the load time can be minimized?
I have used async task to fetch the data,async task is performed in fragment's onAttach() method to prevent json parsing when back button is pressed.