The activity. ondestroy () of the Samsung device is called. Show "Developer options"

Source: Internet
Author: User

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 ":

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.