android Intent clear don't ask again

非 Y 不嫁゛ 提交于 2020-01-16 17:06:51

问题


For some intents, there are multiple providers which provide the functionality.

An example: For the intent Intent.ACTION_SET_WALLPAPER it shows many options image with a Don't ask again option.

Now if the user checks it and opens through some app, how to clear it the next time programmatically if the user requests to show all the possible options again? i.e. the prompt should show all the available providers again.

I'm starting the intent in this way

val intent = Intent(Intent.ACTION_SET_WALLPAPER)
startActivity(intent)

来源:https://stackoverflow.com/questions/59279969/android-intent-clear-dont-ask-again

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!