Has anyone got task locking working in Android L? Could they share some details on how it works? I have seen the instructions below, but struggling to understand this.
Taking Below Snip from Task Locking API

It is clear that startLockTask() api will be hv effect if device_owner.xml is present .
How do i check if my app is device owner ?
When you app is device owner , you app is Device Administrator option will be checked and checkbox will be gray out hence will not allow u to untick the checkbox.

You need to give system right while pushing device_owner.xml
Follow below steps :