To run this application successfully after installation make application a device owner by running this comman on the terminal:
Mac:
1. cd ~/Library/Android/sdk/platform-tools
2. ./adb shell dpm set-device-owner com.francis.testuserswitching/com.francis.testuserswitching.AppAdminReceiver
Windows:
adb shell dpm set-device-owner com.francis.testuserswitching/com.francis.testuserswitching.AppAdminReceiver