Well, finally, I managed to make it work better, I still do not quite understand how manifest intent filters should work, but here's what I did:
The intent intercept app showed me the mimetype of my files: "text / plain", so first I added:
<data android:mimeType="text/plain" >
So, at the moment, my application is no longer displayed for all files.
Then, when I create the file, I added: sendIntent.setType("application/custom");
and I added the corresponding mimetype type to the manifest file.
This method worked well on both Android 2 and 4 phones that I tested.
If someone found or wrote something about how the intent filter works, please let me know!
source
share