I need to build an app that sends mms. The image I want to send is in the asset dir.
Now actually I have to questions, does anyone know a way to send an MMS in the background, ie build it and send it without the user seeing anything?
The only info I found is a way to use androids default intents for that, which would bring up the messaging screen of android. As this was the only quick fix, I tried that but the problem is I dont know how to access the image I want to send (its part of the app, in the asset or res dir).
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra("sms_body", "some text");
sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(<WHAT STRING DO I NEED TO PUT HERE TO BE ABLE TO SEND THAT APP-INTEGRATED IMAGE?>));
This is the code I found, my problem is in the third line, I can access the image as stream using the assetmanager, but what I need here is the url of that image in the asset directory.
Please help, especially if you have any clue how to send an MMS without the messag app coming up!