I am working with SMS functionalities on Android. I have successfully fetched all the SMS from the phone and I want to filter those SMS by SIM 1 and SIM 2. I have checked the columns (the query to fetch SMS is returning) but can't figure out which column indicates SIM information
I am using this to get all SMS
Uri uriSMSURI = Uri.parse("content://sms/");
Cursor cur = activity.getContentResolver().query(uriSMSURI, null, "thread_id = "+thread, null, "_id DESC LIMIT "+limit +" offset "+(limit*page));
This returns all SMS but I want SMS from one SIM card only.
Any help or suggestion is welcome