Srinidhi vm
Nov 14, 2017
8:36 am

App shortcut not creating

Hi,

I am trying to create an app that combines geofencing and kiosk sample app of KNOX standard SDK. When kiosk mode is on, the app shortcut has to be created. But the app shortcuts are not created when in kiosk mode. What should be done?

Samuel Goldwax
Nov 14, 2017
7:35 pm

Hi Srinidhi,
You can add the shortcut in a BroadcastReceiver that listens for edm.intent.action.enable.kiosk.mode.result, then add the shortcut using ApplicationPolicy.addHomeShortcut.

Thanks,

Sam

Srinidhi vm
Dec 11, 2017
1:10 pm

Hi, 

the application shortcuts are created in kiosk mode. But the receiver again listens for edm.intent.action.enable.kiosk.mode.result. 

the shortcuts are created infinitely.

how to get the number of  home shortcuts created on kiosk mode? so that i could check using if loop.

Samuel Goldwax
Dec 11, 2017
5:33 pm

Hi Srinidhi,
You can use the ApplicationPolicy.getHomeShortcuts method to get the names of packages on the home screen and check from there. Could you let me know the device model/OS/Knox version of the device so I can try to reproduce this looping action issue? It shouldn't be happening.

Thanks,

Sam

Srinidhi vm
Dec 12, 2017
3:33 am

I use the ApplicationPolicy.getHomeShortcuts method to get the names of packages of currently installed Kiosk Home screen.

The device is Samsung Galaxy Tab E (Android Version 4.4.4)