Make a camera app available for lock screen quick

2019-06-05 10:53发布

问题:

How can I make my camera app available for "quick launch" on the Android lock screen?

The documentation for camera intents seems to all be focused on how to implement in a camera app which will take a single photo and return it to the calling application. The lock screen quick launch seems like a totally different use case, and the "return an image" workflow obviously would not apply. (For now, I specifically don't want to implement the "return one photo" functionality.)

Thanks for any help. Either this seems poorly documented, or I can't figure out the proper terms to search for the proper documentation.

回答1:

Thank you CommonsWare. Your comment eventually led me to...

<intent-filter>
  <action android:name="android.media.action.STILL_IMAGE_CAMERA" />
  <category android:name="android.intent.category.DEFAULT" />
</intent-filter>