android - Cursor andorid sms - how to get countryISO -
i have code read informations sms:
uri msmssentqueryuri = uri.parse("content://sms/sent"); cursor cursors = getcontentresolver().query(msmssentqueryuri,null, null, null, null); if (cursors.getcount() > 0) { while (cursors.movetonext()){ date = cursors.getstring(4); address = cursors.getstring(2); jsonobject jsonsms= new jsonobject(); jsonsms.put("type", "sms"); jsonsms.put("date", date); jsonsms.put("receiver", address); jsonsms.put("direction", "outgoing"); jsonobj.put("sms"+date, jsonsms); } } i same thing calls utilize calllog.calls can find more informations countryiso gives me country code of country user received or made call. there way same info when send sms, can read sms sent abroad? thank
android cursor sms
No comments:
Post a Comment