Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to write an Intent to display file with only desired extensions in Android
    primarykey
    data
    text
    <p>I am developing an android app that encrypts/decrypts file.</p> <p>Once a file is encrypted, its extension changes to filename.encrypted ( here filename is itself a fully qualified filename like hello.pdf, so the encrypted file becomes hello.pdf.encypted).</p> <p>I have intregrated a file chooser intent in my app, so that user don't need to open a third party intent to choose the files.</p> <p>My problem is, while user selects to Encrypt a file, he should not be allowed to choose files that are already encrypted i.e. having the extension ".encrypted" and when they are trying to Decrypt a file they should only see the files with the extension ".encrypted".</p> <p>I have seen a lot of file chooser intents like (<a href="https://github.com/iPaulPro/aFileChooser" rel="nofollow noreferrer">https://github.com/iPaulPro/aFileChooser</a>) and (<a href="http://code.google.com/p/android-filechooser/" rel="nofollow noreferrer">http://code.google.com/p/android-filechooser/</a>) but none have the ability to customize the viewable/selectable files. I read a post (<a href="https://stackoverflow.com/questions/7856959/android-file-chooser">Android file chooser</a>) that says, it cannot be done, but I have seen apps that have implemented this feature.</p> <p>I am need of help in some resources or links that shows me how is that possible to achieve. I strongly believe the functionality is possible.</p> <p>Besides, I would also like my app to recognize the extension ".encrypted" when viewed from a third party file manager. I believe that is possible by indicating it in the Android Manifest, but I failed to make it possible. I read this post: <a href="https://stackoverflow.com/questions/4799576/register-new-file-type-in-android/8638084#8638084">Register new file type in Android</a> but could not do it.</p> <p>Looking for some help here.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload