Note that there are some explanatory texts on larger screens.

plurals
  1. POTake a user back to an app after they activate a device setting as seen in the CyanogenMod installer
    text
    copied!<p>The question is how can an app automatically take a user back into the application from the device settings menu when a particular setting is activated?</p> <p>I recently read a paragraph from <a href="http://arstechnica.com/gadgets/2013/11/android-roms-the-easy-way-testing-the-new-cyanogenmod-installer/" rel="nofollow noreferrer">an article</a> about the Cyanogenmod installer and its install process where the user is taken from the app to the developer options settings menu and as soon as they select 'USB debugging enabled' they are whisked back to the application. I've tested it on my Nexus 4 running 4.3 and it works as described. Here's the paragraph and an image:</p> <blockquote> <p>A few Android apps have "settings walkthroughs" like this, and normally they are pretty confusing. Usually the app shows you instructions, kicks you out to the settings, and requires you to hit "back" to return to the app. If the user forgets this or only skims the instructions, they're lost in the device settings.</p> <p>The CyanogenMod Installer has a neat trick though: as soon as you check ADB debugging, the app immediately takes the user back over, pulls you from the Settings screen, and pushes everything to the next step. Other than checking the box for you (which isn't possible), it couldn't be any easier.</p> </blockquote> <p><img src="https://i.stack.imgur.com/O5kCP.png" alt="enter image description here"></p> <p>I'd like to be able to replicate this functionality but have no idea how to go about it. Googling has produced nothing of note either. It just seems like it would be a great user experience to have this happen automatically rather than relying on the user to know to press the back button.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload