- ContentValues values = new ContentValues();
- values.put(NAME, "CMCC cmwap");
- values.put(APN, "cmwap");
- values.put(PROXY, "10.0.0.172");
- values.put(PORT, "80");
- values.put(MMSPROXY, "");
- values.put(MMSPORT, "");
- values.put(USER, "");
- values.put(SERVER, "");
- values.put(PASSWORD, "");
- values.put(MMSC, "");
- values.put(TYPE, "");
- values.put(MCC, "460");
- values.put(MNC, "00");
- values.put(NUMERIC, "46000");
- reURI = getContentResolver().insert(Uri.parse("<a href="content://telephony/carriers">content://telephony/carriers"), values);
- //首选接入点"<a href="content://telephony/carriers/preferapn">content://telephony/carriers/preferapn"
- //该片段来自于http://www.codesnippet.cn/detail/16112012422.html
来源: http://www.codesnippet.cn/detail/16112012422.html