Following the last three videos in the course, Jon-Luke finishes up integrating managed application configurations into the example application with the viewer. The last thing to do is listen for changes to the image URL restriction in the same fashion as the others.
- [Instructor] Like we did previously in our main activity,…we need to listen for changes to our URL.…We can do this in the same way.…Let's create a new broadcast receiver…called restrictionsReceiver,…then in our onCreate method,…let's define our IntentFilter…called restritionsFilter…or Intent.ACTION_APPLICATION_RESTRICTIONS_CHANGED.…
Then we will define our broadcast receiver.…Then we can copy and paste what we did in onResume…to save us some headache,…except that we need to make sure that the image update call…is done on our UI thread.…So let's move this into a new runnable…that we post to our image.…
Don't forget our semicolons.…And to finish,…scroll down,…and still within our activity,…Control + O for override onDestroy.…We should always make sure to unregister our receiver.…
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