MMS - How to : with and without INTENT

Hello !

Looking over the internet, I found out that sending and recieving MMS can be a difficult task depending on wether the Android version the end-user is running.

I found two solutions for Android / Java development :

  • either you create an intent which will trigger the default SMS App (for post KitKat versions). I do not know what happen if your application is the default SMS App. Prior to KitKat I believe it triggers the built-in SMS/MMS application.

  • either you import a ton of classes from AOSP (since Android is open source) as described here :

But well, we're in Xamarin... not that I want to complain but I don't know where to go now.

I would like to follow that solution : but I don't know about importing .jar in Xamarin, though I do know it's possible.

Anyways, is there any one here who tried to implement MMS features (without necessarily the user interaction) with Xamarin.Android ?

I am looking to develop a PC app to send SMS / MMS over bluetooth.

Thanks !!!


  • YkshLeoYkshLeo USMember ✭✭✭✭

    I used something like this to send a MMS in Xamarin.Android.

    Intent sendIntent = new Intent(Intent.ActionSend);
    sendIntent.SetClassName("", "");
    sendIntent.PutExtra("address", "1213123123");
    sendIntent.PutExtra("sms_body", "if you are sending text");
    File file1 = new File("mFileName");
        //File Exist
    Uri uri = Uri.FromFile(file1);
    sendIntent.PutExtra(Intent.ExtraStream, uri);

    It's Just a sample, try something like this.

  • SabaSoomroSabaSoomro USMember ✭✭

    @YkshLeo can you please give a sample code for receiving an MMS as well?

Sign In or Register to comment.