intentfilter - How to write an Intent to display file with only desired extensions in Android -


i developing android app encrypts/decrypts file.

once file encrypted, extension changes filename.encrypted ( here filename qualified filename hello.pdf, encrypted file becomes hello.pdf.encypted).

i have intregrated file chooser intent in app, user don't need open third party intent choose files.

my problem is, while user selects encrypt file, should not allowed choose files encrypted i.e. having extension ".encrypted" , when trying decrypt file should see files extension ".encrypted".

i have seen lot of file chooser intents (https://github.com/ipaulpro/afilechooser) , (http://code.google.com/p/android-filechooser/) none have ability customize viewable/selectable files. read post (android file chooser) says, cannot done, have seen apps have implemented feature.

i need of in resources or links shows me how possible achieve. believe functionality possible.

besides, app recognize extension ".encrypted" when viewed third party file manager. believe possible indicating in android manifest, failed make possible. read post: register new file type in android not it.

looking here.

i found library https://github.com/kaloer/android-file-picker-activity thing wanted achieve.

they have given provision specify allowed extensions using putextra in intent.

may useful others similar problems.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -