use of com.google.android.mms.pdu.EncodedStringValue in project XobotOS by xamarin.
the class PduPersister method persistAddress.
private void persistAddress(long msgId, int type, EncodedStringValue[] array) {
ContentValues values = new ContentValues(3);
for (EncodedStringValue addr : array) {
// Clear all values first.
values.clear();
values.put(Addr.ADDRESS, toIsoString(addr.getTextString()));
values.put(Addr.CHARSET, addr.getCharacterSet());
values.put(Addr.TYPE, type);
Uri uri = Uri.parse("content://mms/" + msgId + "/addr");
SqliteWrapper.insert(mContext, mContentResolver, uri, values);
}
}
Aggregations