What are the values ​​in the content // content / sms / content provider?

I requested "content // sms /" and I don't know what some fields mean. They are -

  • Stream id
  • Protocol
  • Status
  • Reply_Path_Present
  • Service_Center

I checked them in LogCat and found the following values:

  • Topic ID: 1 to 6, etc.
  • Protocol: null / 0
  • Status: -1
  • Reply_Path_Present: null / 0
  • Service_Center: null

Please tell me what are the meanings of these values.

+5
source share
2 answers

You can use Cursor.getColumnNames()to get the column names of any content provider, for example

ContentResolver contentResolver = getContentResolver();
Cursor cursor = contentResolver.query(
    Uri.parse("content://sms/inbox"), null, null, null, null);

String[] columnNames = cursor.getColumnNames();

content://sms/inbox _id, thread_id, , , , , , , , reply_path_present, subject, body, service_center, .

SmsProvider, API.

+6

- , .

StringBuffer info = new StringBuffer();
for( int i = 0; i < Cursor.getColumnCount(); i++) {
    info.append("Column: " + Cursor.getColumnName(i) + "\n");
}

, , .

+1

All Articles