iIntent.Initialize("android.intent.action.SEND", "")
iIntent.SetType("image/*")
iIntent.PutExtra("android.intent.extra.STREAM", GetFileUri(File.DirRootExternal, "test.jpg"))
iIntent.PutExtra("address", TelNum)
iIntent.PutExtra("sms_body", SMSText)
iIntent.PutExtra("android.intent.extra.TEXT", SMSText)
Dim JO As JavaObject
JO.InitializeContext
JO.RunMethod("startActivity", Array(iIntent))
No. There is no such thing. A SMS is only TEXT.Is this currently possible to send any image in a text message in B4a?
You are NOW talking about MMS which is NOT SMS.so I know for a fact it works
But then the user clarified his question by stating:You are NOW talking about MMS which is NOT SMS.
The question was about SMS. SMS is not able to transport an Image.
So, that lead me to believe he wasn't just talking about strictly using only SMS, that he was also talking about MMS (which nowadays the SMS/MMS is the same app) because with a strictly SMS messaging app, you couldn't "take a picture from within messages and send it".Similar to if you take a picture from within messaging and send it.
You are NOW talking about money. The OP didn't mention money, so I did not think that was any concern.I, for example, can send unlimited SMS. I usually use 1 to 5 SMS-Sendings; SMS is out
But for every MMS i have to pay. This may apply to ither phoneproviders too. Maybe not.
I do not use MMS because of this.
If he need to pay for MMS and he did send 1000 MMSses to test this may become any concern.You are NOW talking about money. The OP didn't mention money, so I did not think that was any concern.
search for this error and you´ll find some threads about.I think the relevant part of the error is this.
Caused by: android.os.FileUriExposedException