I am trying to read messages from an inbox and display them in an activity. My activity contains a button and listview. When I click on the button, all messages from the inb
If you want to read messages only from particular number you need to somehow filter your data.
This example filter cursor and sort it.
selection = "_id = " + 15; Cursor curSms = context.getContentResolver().query(smsUri, null, selection, null, "date ASC");