Android: how to click on a line in listview after receiving SMS?
<pre><code>public void onItemClick( AdapterView&lt;?&gt; parent, View view, int pos, long id ) 
    {
        try
        {
            String sender = smsList.get( pos ).split("\n")[0];
            String encryptedData = smsList.get( pos ).split("\n")[1];
            String data = sender + "\n" + StringCryptor.decrypt( new String(SmsReceiver.PASSWORD), encryptedData );
            Toast.makeText( this, data, Toast.LENGTH_SHORT ).show();
        } 
        catch (Exception e) 
        {
            e.printStackTrace();
        }
    }
</code></pre>

<p>I want to decrypt the SMS received on click every time I go in the application, it can only decrypt when there is only one SMS, if it receive 2 SMS, it can't be decrypted because whenever I click, it clicked the whole <code>ListView</code>.</p>

<p>Does anyone know how to click separately, line by line?</p>
