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.
精彩评论