I queried "content//sms/" and I don't know what some fields mean. They are -
I checked them in LogCat and found the values to be these:
Please tell me what the meanings of those values are.
You can use Cursor.getColumnNames()
to retrieve the column names of any content provider, e.g.
ContentResolver contentResolver = getContentResolver();
Cursor cursor = contentResolver.query(
Uri.parse("content://sms/inbox"), null, null, null, null);
String[] columnNames = cursor.getColumnNames();
For content://sms/inbox
this yields _id, thread_id, address, person, date, protocol, read, status, type, reply_path_present, subject, body, service_center, locked on my phone.
You can also have a look at the SmsProvider
but it is not part of the public API.
The folling is the way to determine all the columns that a particular Cursor has .
StringBuffer info = new StringBuffer();
for( int i = 0; i < Cursor.getColumnCount(); i++) {
info.append("Column: " + Cursor.getColumnName(i) + "\n");
}
Print this out to know what are all the columns in the table .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With