Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

When I visit a website then switch to another app, then switch back to the browser the page is reloaded which I have just seen. It happens not just with builtin browser - I also tried Opera Mini and Maxthon.

How can I keep the recently seen page after resuming the browser?

share|improve this question
add comment

migrated from stackoverflow.com Sep 16 '12 at 20:59

This question came from our site for professional and enthusiast programmers.

2 Answers

You can't prevent that. If the system (or App) reload the content, this is because it has decided to reload it. There is no option to prevent that.

But you can create your own browser that will handle the resume as you want ;)

share|improve this answer
1  
Yeah, just to paraphrase, this is unfortunately due to the Android OS decided it needs to free up memory being used by the Browser by stopping it from being open in the background. Someone may have written a browser app that saves the page data and reshows it, even if the app's activity has been killed, however. Good answer. –  Lance Nanek Sep 16 '12 at 21:41
3  
I agree with the answer. I will add some speculation: the browser isn't actually reloading, in the sense of reissuing the HTTP GET request; rather, it's simply re-rendering the existing HTTP response that it presumably has lying around in its cache. I say this because I've seen this happen without network connectivity; if I then tap the "reload" button, it gives the error you'd expect ("Cannot load page because I cannot connect to the Internet" or whatever.) –  offby1 Sep 16 '12 at 23:50
    
If it has decided to reload it, then it would have been a very bad decision since it would be "killed" the the ability to use apps simultanously. But the answer coming from @offby1 is right - there is a re-rendering instead of a reloading - so I would accept this answer –  laplasz Sep 17 '12 at 8:24
    
I tried Google Chrome and it was worked as it should be! No rerendering at all - can somebody verify it? –  laplasz Sep 17 '12 at 9:05
3  
@laplasz: browsers had to rerender if it has been killed by the system (generally when a foreground apps needs more memory). With chrome, rerendering is a bit obvious because chrome displayed a grayscale screenshot of the page while it's rerendering. If you want to prevent rerendering at all, you should avoid switching to a heavy application (e.g. games). How much states are preserved across rerendering depends on the quality of implementation of the browser. –  Lie Ryan Sep 17 '12 at 12:18
show 8 more comments

Just uncheck "Don't keep activities" from the "Developer options" under general Android settings.

share|improve this answer
    
Unrelated... It was unchecked already and it still happens. Are you sure that your web pages do not reload when you switch between tabs? –  Domi yesterday
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.