I'm new to android and I know similar questions like this have been asked before, I've looked at their answers and none of them seem to solve my problem
I have a listview in a fragment in my activity that retrieves information from a URL and displays it using a custom adapter and clicking on a row will display more information about the row clicked in a new activity, like a news with more details.
The problem I have is each time I go back from the activity with more details, the previous activity has to make the connection again to retrieve the information from the URL to display in the listview, so the listview becomes empty and the whole process starts from beginning
I'm looking for the best and/or easiest way to save the state of the fragment in the previous activity or the activity itself, so that when the user goes back to it he sees it as he left and it won't make the connection every time.