How to send message through dialog box?
<p>In my application I am clicking one share image button and four options facebook, twitter, mail and messaging are showing through alert Dialog box. I want to send message throuh fourth option(Messaging). How to do that. I have created dialog box like this. What will be the code to send the message to any mob no. </p>

<p>Here is my code.....</p>

<pre><code>sharebuton.setOnClickListener(new View.OnClickListener() {
        @Override`enter code here`
        public void onClick(View v) {
            // TODO Auto-generated method stub
    final CharSequence[] items = {"Facebook","Twitter", "E-Mail", "Messaging"};
    AlertDialog.Builder builder = new AlertDialog.Builder(ProgramInfoActivity.this);
    builder.setTitle("Share the Program");
    builder.setItems(items, new DialogInterface.OnClickListener() {   
        public void onClick(DialogInterface dialog, int item) {   
            //Toast.makeText(getApplicationContext(), items[item], Toast.LENGTH_SHORT).show();          
            }});
    AlertDialog alert = builder.create();
    alert.show();

        }
    });
</code></pre>
