When I tested my app on Samsung Galaxy S4 yesterday, the ondestory () of the first activity was always called during the jump between activity pages, resulting in the returned results from the second activity, the first activity is always oncreate (), and the page is refreshed. In particular, the page is a list and requires network requests. Therefore, frequent network requests are a waste of traffic.
Today, Samsung developers found a post:
Http://developer.samsung.com/forum/board/thread/view.do? Boardname = generalb & messageid = 172314 & startid = zzzzzzz ~ & Amp; searchtype = title & searchtext = ondestroy
In the last reply, I wrote: On a Samsung device, there is a setting"
Don't keep activities (destroy every activity as soon as the user leaves it) |
"
So suddenly, I found it:
You can leave the "do not retain activity" option unchecked.
Show "Developer options ":
1. In "about devices", click "kernel version number" continuously. The "unlock developer options three more times" prompt appears. Click again.
2. After unlocking, the "Developer options" will be displayed in the returned result ":