Android: OnItemClickListener
<p>i have got ListView of Inbox SMS.I am trying, if i click on any item in the ListView,it will open Sms Manager with filled destination number from recieved sms,but i dont know how i can do it.Can somebody help me?Sorry for my english.</p>

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

  @Override
            public void onItemClick(AdapterView&lt;?&gt; arg, View view, int position,long id) {

                SmsManager m = SmsManager.getDefault();
                Uri uriSMSURIs = Uri.parse("content://sms/inbox");

                int poss = list1.getSelectedItemPosition();
                String pos = String.valueOf(poss);
                Log.d(TAG, "pos: " + pos);

                Cursor cc = getContentResolver().query(uriSMSURIs, null, pos, null, null);

                    String phoneNumber  = cc.getString(cc.getColumnIndex("address"));
                m.sendTextMessage(phoneNumber , null, null , null, null);
</code></pre>
