This is what I do:
Uri uri = FileProvider.getUriForFile(getContext(), getContext().getPackageName() + “.file_provider”, file)
It used to be
Uri uri = Uri.fromFile(file);
And this creates intent, the same way documentation says:
new TweetComposer.Builder(getContext()).text(tweetText).image(uri).createIntent()
This is screenshot from my device (sorry for Polish lang, but you’ll find correct string:))
I’m not 10000% sure that this isn’t my fault, but I have no idea who should I do it in different way. File provider generates link, so I guess it should be fine:)