element-hq / riot-android

A glossy Matrix collaboration client for Android
Apache License 2.0
1.4k stars 394 forks source link

Share an image with text from an external app #3427

Closed BorisLaskov closed 4 years ago

BorisLaskov commented 4 years ago

From an external app, I try to share an image with text like this:

Intent i = new Intent();
i.setAction(Intent.ACTION_SEND);
i.putExtra(Intent.EXTRA_STREAM, bitmap);
i.putExtra(Intent.EXTRA_TEXT, stringText);
i.setType("image/jpeg");
startActivity(Intent.createChooser(i, "title"));

If I set mime type to

bmarty commented 4 years ago

Riot-Android does not (and I assume will never) support sending image with caption. RiotX may support this in the future

EsmaeeilMoradi commented 4 years ago

Riot-Android : i added a caption to image and video. (I added a caption to the file name and send, receive file name another client. extract file name and edit String finally show in text view )