Sending SMS via Android Application without moving to Message Box Default Application
<p>I want to ask you: 
1-How can I send  SMS via my applicatin without moving the user to the Messages box 
i just want to allow user to insert the text then he/she clicks on the send button
after that directly the text message should be sent to specific number that i write in the code?</p>

<p>I used this Code as shown below, it works well, but it moved me to the message box :(
any Suggestions ?</p>

<pre><code>MyButton.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {
                // TODO Auto-generated method stub
                String str= MyEditText.getText().toString();
                // For SMS
                Uri smsUri = Uri.parse("I wrote my number here");
                Intent intent = new Intent(Intent.ACTION_VIEW, smsUri);
                intent.putExtra("sms_body", "Besm Allah");
                intent.setType("vnd.android-dir/mms-sms"); startActivity(intent);
            }
        });
</code></pre>

<p>====================== After Updating ================================</p>

<p><img src="http://i.stack.imgur.com/PUpae.jpg" alt="Why (SmsManger) word appears like this (with lines)"></p>
