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))
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.
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