Like the previous video, you need to load the current value for the application restriction you created earlier. This time, Jon-Luke walks through the restriction for the image URL to make sure you can remotely manage the picture displayed in full-screen mode in the example app.
- Let's open up the image activity in our example project.…Just like before, we should start by creating…a Restrictions Manager object.…This will be called My Restrictions Manager.…And we should define it in our On Create method…by calling Get Systems Service…with the context of Restrictions Service.…
Next, we should be checking the app restrictions…in the On Presume method.…Let's create a bundle called Application Restrictions,…and fill it by using My Restrictions Manager…dot Get Application Restrictions.…Like before, we should check that the bundle has content…by making sure that its size is greater than zero.…Once we are sure that our bundle has content,…we should set our New Image URL…by calling Application Restrictions dot Get String.…
Using the Image URL key that we defined earlier,…which is Image URL.…In this instance, we should make sure that we check…that this URL is valid, using If URL Util dot Is Valid URL,…and giving it our Image URL.…Now, let's move our call to set the image using Glide,…an image processing library, into this new If statement.…
Instructor Jon-Luke West first reviews the key concepts of enterprise mobility management in Android: important APIs, the role of the device administrator, and the types of devices you should plan to target. He reviews the three primary use cases, including bring your own device (BYOD) and corporate-owned single-use (COSU) scenarios. Then he dives straight into the code, showing how to implement three enterprise integration features: managed application configurations, app pinning, and locked task mode. Finally, he shows how to test the features on a managed device.
- Enterprise mobility management (EMM) and mobile device management (MDM)
- Android EMM APIs
- Use cases: BYOD, work-manage devices, and COSU
- Checking restrictions and restriction changes for managed configurations
- App pinning and lock task mode
- Testing enterprise integration features using Test DPC