In my current Android project I have to use tts (to read messages) in lock task mode (single purpose app/kiosk app). Everything works well in 'normal' app mode but when i try use text-to-speech in lock task mode then no sound comes out.
I add 'com.google.android.tts' packgake to setLockTaskPackages() but it's still not work.
Do you have any other solutions or samples usage tts in lock task mode?
EDIT:
The solution is very easy, just don't forget to set property parameters in set User Restriction()
In my case:
setUserRestriction(UserManager.DISALLOW_MOUNT_PHYSICAL_MEDIA, false);
setUserRestriction(UserManager.DISALLOW_ADJUST_VOLUME, false);
edit
is working for me as well.