DeviceAdminReceiver

Hi everyone,

I’m trying to use this plugin: https://github.com/oddmouse/cordova-plugin-locktask
which I’ve managed to implement and can call screen pinning. Now I’m trying to make the app a device owner using the docs, but I’ve no idea what it means by “Add a device admin sub class of DeviceAdminReceiver”. I’ve done some Googling and can’t find anything relevant. I’m assuming I have to add the provided Java in a file somewhere, but where?

Thanks