代码片段(1)
[代码] java代码
01 |
ContentValues values = new ContentValues(); |
02 |
values.put(NAME, "CMCC cmwap" ); |
03 |
values.put(APN, "cmwap" ); |
04 |
values.put(PROXY, "10.0.0.172" ); |
05 |
|
06 |
values.put(PORT, "80" ); |
07 |
values.put(MMSPROXY, "" ); |
08 |
values.put(MMSPORT, "" ); |
09 |
values.put(USER, "" ); |
10 |
values.put(SERVER, "" ); |
11 |
values.put(PASSWORD, "" ); |
12 |
values.put(MMSC, "" ); |
13 |
values.put(TYPE, "" ); |
14 |
values.put(MCC, "460" ); |
15 |
values.put(MNC, "00" ); |
16 |
values.put(NUMERIC, "46000" ); |
17 |
reURI = getContentResolver().insert(Uri.parse( "content://telephony/carriers" ), values); |
18 |
|
19 |
|
20 |
//首选接入点"content://telephony/carriers/preferapn" |