lineage-next / android_packages_apps_Glimpse

Gallery app for LineageOS
8 stars 4 forks source link

Intents #64

Open SebaUbuntu opened 1 year ago

SebaUbuntu commented 1 year ago

Note: Only AOSP intents are there, we don't want to encourage the usage of deprecated or vendor intents, keep it that way

Status Intent action Intent category Input Output Description
:heavy_check_mark: android.intent.action.VIEW android.intent.category.DEFAULT, android.intent.category.BROWSABLE image/*, video/*, <remote URLs> None View a media
:heavy_check_mark: android.provider.action.REVIEW android.intent.category.DEFAULT, android.intent.category.BROWSABLE image/*, video/*, <remote URLs> None View a media, together with media from the same album
:heavy_check_mark: android.provider.action.REVIEW_SECURE android.intent.category.DEFAULT, android.intent.category.BROWSABLE image/*, video/*, <remote URLs> None Securely view a media (also when keyguard locked)
:heavy_check_mark: android.intent.action.PICK android.intent.category.DEFAULT vnd.android.cursor.dir/image, vnd.android.cursor.dir/video URI Pick something
:heavy_check_mark: android.intent.action.GET_CONTENT android.intent.category.OPENABLE, android.intent.category.DEFAULT No URI, type: image/*, video/* content:// URI Pick something (but no URI specified)
TODO android.intent.action.EDIT android.intent.category.DEFAULT image/*, video/* (possibly) TBD Edit a media
:heavy_check_mark: android.intent.action.SET_WALLPAPER android.intent.category.DEFAULT None None Show settings for choosing a wallpaper
:heavy_check_mark: android.intent.action.ATTACH_DATA android.intent.category.DEFAULT image/*, video/* None Used by apps to attach images in the "Use as" use-case, in our case, receive images to use as wallpaper
TODO android.hardware.usb.action.USB_DEVICE_ATTACHED android.intent.category.DEFAULT EXTRA_DEVICE TBD Import media from an external USB device
luca020400 commented 8 months ago

android.intent.action.ATTACH_DATA Used by apps to attach images in the "Use as" use-case, we'd need to implement a "Set wallpaper" activity solely for that.