I'm trying to get my camera app to launch from a password protected lock screen. I've added the following intent filter to allow the app to appear as an option for the lock screen shortcut:
<intent-filter>
<action android:name="android.media.action.IMAGE_CAPTURE_SECURE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
However, when launching the app from the lock screen I get the following exception:
java.lang.SecurityException: Lacking privileges to access camera service
I already have <uses-permission android:name="android.permission.CAMERA" />
declared in the manifest, and the app runs just fine otherwise.
Any insight into this would be much appreciated. Thank you!
Edit: I can successfully launch the app as a lock screen short when the lock screen is not password protected. Once it's password-locked though, I get the java.lang.SecurityException: Lacking privileges to access camera service
exception.
For some reason SO is not letting me paste my manifest, so here's a link to the code: http://pastebin.com/F5kk9HrT