How to send MMS / how to reference asset files as url

All your problems with Audio, Video and Images.

How to send MMS / how to reference asset files as url

Postby cchange » Mon Feb 08, 2010 4:50 pm

Hi all!

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?>));

sendIntent.setType("image/png");


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!


Cheers!!
CC
cchange
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Feb 08, 2010 4:40 pm

Top

Postby rd42 » Thu Apr 08, 2010 3:14 pm

I'm trying to do the same thing. Did you ever get this working?

Thanks,
Robert
User avatar
rd42
Junior Developer
Junior Developer
 
Posts: 22
Joined: Thu Apr 01, 2010 5:12 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 14 guests