title: Android (setLockTaskPackages)
body: <p>i am making a kiosk app and i am using Google's screen pinning. i have managed to make my app a device admin using the custom xml file and a receiver that extends the DeviceAdminReceiver and i am also checking using a boolean parameter which is true indicating that indeed the application is device owner. when i try to use </p>
  
  <pre><code>devAdminReceiver = new ComponentName(getApplicationContext(), DemoDeviceAdmin.class);
  String[] paramDevice = new String[]{"com.example.valantis.myapplication"};
  managerPolice.setLockTaskPackages(devAdminReceiver, paramDevice);
  startLockTask();
  </code></pre>
  
  <p>i get the following <strong>error</strong>:</p>
  
  <pre><code>SecurityException: Admin ComponentInfo{..} does not own the device 
  </code></pre>
  
  <p>what is the problem?</p>
  
  <p><strong>images:</strong></p>
  
  <p><a href="https://www.dropbox.com/s/l06bzqep6m9pvrm/11851195_10207295501010412_1943962580_n.jpg?dl=0" rel="nofollow">https://www.dropbox.com/s/l06bzqep6m9pvrm/11851195_10207295501010412_1943962580_n.jpg?dl=0</a></p>
  
  <p><a href="https://www.dropbox.com/s/loyfdsj3hzuafh2/11853053_10207295534171241_892119485_o.jpg?dl=0" rel="nofollow">https://www.dropbox.com/s/loyfdsj3hzuafh2/11853053_10207295534171241_892119485_o.jpg?dl=0</a></p>