开发者

Is there any possibility to give a alert dialog at the time of open a file in android?

Is there any po开发者_如何学Cssibility to give a alert dialog at the time of open a file in android. I need to ask an alert dialog if the user try to open any file from the SDCard file (or) Phone Gallery files. ???


The closest you can get to that is using Intents.

Register an intent filter and every time files of a certain description are opened, your application will be given as an option. However, the user must choose your application to get the dialog you want.

See the Android intents and intent filters guide.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜