1. Check out our companion app, Forums for Android! Download from Google Play

How to make automatic 'send' on MMS activity?

Discussion in 'Application Development' started by naaman, May 7, 2010.

  1. naaman

    naaman New Member
    Thread Starter
    5

    May 7, 2010
    1
    0
    5
    Hello,
    I'm trying to make auto MMS sending activity.
    I'm using the following code:

    Java:
    Intent sendIntent = new Intent(Intent.ACTION_SEND,
    Uri.parse("mms://"));
    sendIntent.setType("image/jpeg");
    String url = "file://sdcard//tmpPhoto.jpg";
    sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(url));
    startActivity(Intent.createChooser(sendIntent, "MMS:"));



    It's activating the phone's mms activity, which waits for clicking the 'send' button.

    How can I programmatic 'press' this button (with no help from the user)?

    Thanks
     

    Advertisement

Share This Page

Loading...