下段代码将输出SMS的各字段名称。
String smsc=""; for(int i=0;i<c.getColumnCount();i++){ smsc=smsc+c.getColumnName(i)+"\n"; } Log.e("smsColumn",smsc); Toast.makeText(mContext, smsc, Toast.LENGTH_LONG).show();
_id // 短消息序号
thread_id // 对话的序号(conversation)
address // 收件人
person // 发件人
date // 日期
protocol // 协议
read // 是否阅读
status // 状态
type // 类型
reply_path_present //
subject // 主题
body // 短消息内容
service_center // 服务中心