Android 7.1 will bring us a new UserManager-method called isDemoUser(). According to the docs…
Checks if the calling app is running in a demo user. When running in a demo user, apps can be more helpful to the user, or explain their features in more detail.
But… how to I activate a demo user? If this is common knowledge, please feel free to let me know.
Anyway, I figured out how to activate demo mode in the Android emulator:
- Activate the developer options by clicking on the Build number on the About emulated device page seven times
- Open the Developer options page
- Click on Demo mode
This shows a page with the same title: