Jump to content
KimHJ

Send image with mms

Recommended Posts

I'm trying to send a mms and what I found was that I had to use ActionList, I selected Media Library and ShowShareSheetAction.

Then I added this:

procedure TSMSForm.ShowShareSheetAction1BeforeExecute(Sender: TObject);
begin
     ShowShareSheetAction1.TextMessage := MessageMemo.Text;
     ShowShareSheetAction1.Bitmap.Assign(MainForm.Image1.Bitmap)
end;

 

I assume it would ask me how I want to send the message by giving me choices on the device. I still have to find out how to include the phone number.

 

When I execute the ShowShareSheetAction1 I get this error.

java.lang.illegalargumentexception couldn't find meta-data for provider with authority 

 

The app have all the permissions.

Intenet, Access media lcation, Read media images and Send sms.

 

Thanks for any help.

Share this post


Link to post
21 hours ago, KimHJ said:

java.lang.illegalargumentexception couldn't find meta-data for provider with authority 

For this issue, it's likely you need to enable Secure File Sharing in the Entitlement List of the Project Options.

 

As for targeting apps that can send MMS specifically, I don't see anything in the Delphi "built-in" code that supports this. I could extend the ShareItems feature in Kastri to cater for this, though. 

Share this post


Link to post

Thanks.

That was a suggestion I found online.

I was excpecting a window would open and the user could select which app to send the message, just like when I select a picture in gallery and click share.

I will try to use Intent.ACTION_SEND and see if that would open a selection.

Share this post


Link to post

I found the problem.

To make it work you have to check "Secure File Sharing" under "Options/application/Entitlement List'

When executing.

ShowShareSheetAction1.Execute

 

An Android popup shows with all the programs you can share with.

 

One thing did happen on my phone, where I have googles Text messaging set as default, it only gave me the option to use Samsung Text messaging and if I did chose it it asked me to make it the default app for text.

Share this post


Link to post
23 minutes ago, KimHJ said:

To make it work you have to check "Secure File Sharing" under "Options/application/Entitlement List'

Funny thing - I had already answered this:

On 8/8/2025 at 9:34 AM, Dave Nottage said:

For this issue, it's likely you need to enable Secure File Sharing in the Entitlement List of the Project Options.

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×