Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combine share image with text #91

Open
YogevUzan opened this issue Oct 15, 2018 · 8 comments
Open

Combine share image with text #91

YogevUzan opened this issue Oct 15, 2018 · 8 comments

Comments

@YogevUzan
Copy link

YogevUzan commented Oct 15, 2018

Hello,
I'm trying to share an image combined with some text and for some reason it's only one of them that appear each time.

// Shows only text:
new OmegaIntentBuilder(OverViewActivity.this)
.share()
.text("some text")
.bitmap(bitmap)
.createIntent();

// Shows image:
new OmegaIntentBuilder(OverViewActivity.this)
.share()
.bitmap(bitmap)
.createIntent();

@RomanTcv
Copy link
Contributor

RomanTcv commented Nov 1, 2018

@YogevUzan
Thank you for your request.
We will fix it in next release.

@RomanTcv
Copy link
Contributor

RomanTcv commented Nov 6, 2018

Hi @YogevUzan. Can you provide us a little bit more information.
What android version do you use ?
In what application you tried to share ?

@YogevUzan
Copy link
Author

Sure.

  • I have tried with all android versions.
  • I tried to share with WhatsApp and Gmail

@YogevUzan
Copy link
Author

Any news regarding this issue ?

@RomanTcv
Copy link
Contributor

RomanTcv commented Dec 3, 2018

Hi @YogevUzan We can't reproduce this issue. We have checked it, but there were no problems.

@YogevUzan
Copy link
Author

Hi @R12rus
These are the codes I have used to share:

OmegaIntentBuilder.from(this)
.share()
.subject(subject)
.text(text)
.filesUrls(mApartment.getImage()) // It's a url to the image
.download(new DownloadCallback() {
@OverRide
public void onDownloaded(boolean b, @NotNull ContextIntentHandler contextIntentHandler) {
contextIntentHandler.startActivity();
}
});

                    Bitmap bitmap = BitmapFactory.decodeResource(getResources(),
                            R.drawable.check);
                    
                    OmegaIntentBuilder.from(this)
                            .share()
                            .subject("test")
                            .text("test")
                            .bitmap(bitmap)
                            .startActivity();

The ones above doesn't work for me.
When I press the share button, the shared image is excluded, only the text appears in the chat box. (WhatsApp).
Maybe I'm doing something wrong. Can you please correct me if I am ?

@RomanTcv
Copy link
Contributor

RomanTcv commented Dec 5, 2018

I have checked it out. We will work on it as soon as possible.
Thank you.

@RomanTcv
Copy link
Contributor

@YogevUzan
I checked it again and I can't reproduce it. This situation possible only if you open gmail with text and after open gmail again but with text and photos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants