Open nieldeokar opened 6 years ago
This does not work
Hey, Thanks for testing. Can you please let me know which part is not working? whatsapp file sharing or local downloads file sharing ?
@nieldeokar The whatsapp part is not working. The file.canRead method gives false and hence the path returned is null. Do we have to add any permissions in manifest for the above code to work?
I will update you on this after testing it once again. Thanks!
Actually in my app I am using FileUtils
class for detecting incoming file Uri's from other apps. In which files coming from whatsapp were failing to resolve into their actual Uri
. Anyone using FileUtils
for same purpose would get benefited from it so I made the pull request.
But since FileChooserExample
doesn't allow us to browse files from whatsapp it doesn't make any sense here. If you still want to test this feature you can add this intent-filter
to FileChooserExampleActivity
and check if you are able to resolve the Uri
of whatsapp files.
<intent-filter>
<action android:name="android.intent.action.SEND_MULTIPLE" />
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
@nieldeokar its already included but it still does not work
I was getting this errors on SDK 25,26.