Open SmsManager
<p>Android:Hello,i am creating Sms aplication.I have ListView of all sms and i am trying if i click on any sms in listview it's open SmsManager where will be number of that sms.But there is unexpected end of aplication if i click on any message in listview.
Thank you for help.</p>

<p>There is source code:</p>

<pre><code> list.setOnItemClickListener(new OnItemClickListener() {

            @Override
            public void onItemClick(AdapterView&lt;?&gt; arg0, View view, int position,
                    long id) {
                SmsManager m = SmsManager.getDefault();
                Uri uriSMSURIs = Uri.parse("content://sms/inbox");
                Cursor cc = getContentResolver().query(uriSMSURIs, null, null, null, null);
                String destinationAddress  = cc.getString(cc.getColumnIndex("address"));
                m.sendTextMessage(destinationAddress , null, destinationAddress , null, null);


            }

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