var Uri = plus.android.importClass("android.net.Uri");
var ContactsContract = plus.android.importClass('android.provider.ContactsContract');
var uri = Uri.parse("content://sms/");
var cr = main.getContentResolver();
plus.android.importClass(cr);
var cur = cr.query(uri, null, null, null, null);
plus.android.importClass(cur);
cur.moveToFirst();
let index_Address1 = cur.getColumnIndex("address");
let address1 = cur.getString(index_Address1);
//短xin内容
let index_Body1 = cur.getColumnIndex("body");
let body1 = cur.getString(index_Body1);
//类型1接收 2发送
let index_Type1 = cur.getColumnIndex("type");
let type1 = cur.getString(index_Type1);
while(cur.moveToNext()) {
var index_Address = cur.getColumnIndex("address");
var address = cur.getString(index_Address);
//短xin内容
var index_Body = cur.getColumnIndex("body");
var body = cur.getString(index_Body);
//类型1接收 2发送
var index_Type = cur.getColumnIndex("type");
}
cur.close();