Android Question Open Intent Message

Discussion in 'Android Questions' started by imgsimonebiliato, Feb 5, 2015.

  1. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    Hello,
    please I need to open an intent to the native message application of a device.
    Inoltre, I would like to have the text of the sms already set from the application, so that I have only to set the recipient of the message.
    Can anyone help?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Why don't you send the SMS from your app directly (PhoneSms)?
     
  3. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    Because I want to check the sms text before to send it
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Try this:
    Code:
    Dim i As Intent
    i.Initialize(i.ACTION_VIEW, 
    "sms:<phone number>")
    i.PutExtra(
    "sms_body""message body")
    StartActivity(i)
     
    A Z M JANNAT UL KARIM likes this.
  5. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    Yes, it works! Thanks :D
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice