全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
default、mms、supl、dun、hipri接入点类型的区别 设置APN上网时,大家可能经常遇到这个问题:为什么有时要填写default有时要填写supl,而彩信又偏偏要mms?这个问题留到最后,让我们看看每个接入点类型的含义:英文原文来自于Google Android Developers原文连接:/reference/android/net/ConnectivityManager.html我尽量用通俗易懂的语言来解释每个类型的含义,若您是开发者,请尽量阅读英文原文。1、default默认网络连接,当激活时所有数据传输都使用该连接,不能与其他网络连接同时使用View Code JAVA123456java view plaincopyprint?1. /* 2. * The Default Mobile data connection. When active, all data traffic 3. * will use this connection by default. Should not coexist with other 4. * default connections. 5. */ 6. public static final int TYPE_MOBILE = 0; java view plaincopyprint?1. /* 2. * The Default Mobile data connection. When active, all data traffic 3. * will use this connection by default. Should not coexist with other 4. * default connections. 5. */ 6. public static final int TYPE_MOBILE = 0; /* * The Default Mobile data connection. When active, all data traffic * will use this connection by default. Should not coexist with other * default connections. */ public static final int TYPE_MOBILE = 0;适用场合:绝大部分正常上网时可以使用2、mms彩信专用连接,此连接与default类似,用于与载体的多媒体信息服务器对话的应用程序,此连接能与default连接同时使用View Code JAVA1234567java view plaincopyprint?1. /* 2. * An MMS-specific Mobile data connection. This connection may be the 3. * same as TYPE_MOBILE but it may be different. This is used 4. * by applications needing to talk to the carriers Multimedia Messaging 5. * Service servers. It may coexist with default data connections. 6. */ 7. public static final int TYPE_MOBILE_MMS = 2; java view plaincopyprint?1. /* 2. * An MMS-specific Mobile data connection. This connection may be the 3. * same as TYPE_MOBILE but it may be different. This is used 4. * by applications needing to talk to the carriers Multimedia Messaging 5. * Service servers. It may coexist with default data connections. 6. */ 7. public static final int TYPE_MOBILE_MMS = 2; /* * An MMS-specific Mobile data connection. This connection may be the * same as TYPE_MOBILE but it may be different. This is used * by applications needing to talk to the carriers Multimedia Messaging * Service servers. It may coexist with default data connections. */ public static final int TYPE_MOBILE_MMS = 2;适用场合:使用彩信服务时,必须有mms类型的接入点,不必选中,应用程序会自动使用此接入点3、supl是Secure User Plane Location“安全用户面定位”的简写,此连接与default类似,用于帮助定位设备与载体的安全用户面定位服务器对话的应用程序,此连接能与default连接同时使用View Code JAVA123456789java view plaincopyprint?1. /* 2. * A SUPL-specific Mobile data connection. This connection may be the 3. * same as link #TYPEMOBILE but it may be different. This is used 4. * by applications needing to talk to the carriers Secure User Plane 5. * Location servers for help locating the device. It may coexist with 6. * default data connections. 7. * hide 8. */ 9. public static final int TYPE_MOBILE_SUPL = 3; java view plaincopyprint?1. /* 2. * A SUPL-specific Mobile data connection. This connection may be the 3. * same as link #TYPEMOBILE but it may be different. This is used 4. * by applications needing to talk to the carriers Secure User Plane 5. * Location servers for help locating the device. It may coexist with 6. * default data connections. 7. * hide 8. */ 9. public static final int TYPE_MOBILE_SUPL = 3; /* * A SUPL-specific Mobile data connection. This connection may be the * same as link #TYPEMOBILE but it may be different. This is used * by applications needing to talk to the carriers Secure User Plane * Location servers for help locating the device. It may coexist with * default data connections. * hide */ public static final int TYPE_MOBILE_SUPL = 3;适用场合:需要自动切换wap与net接入点的、需要把手机当临时AP的对SUPL技术感兴趣的朋友,不妨看下以下文章SUPL技术(一)/s/blog_537f4a11010008tw.htmlSUPL技术(二)/s/blog_537f4a11010008uf.htmlSUPL技术(三)/s/blog_537f4a11010008ws.htmlSUPL技术(四)/s/blog_537f4a11010008yf.html4、dunDial Up Networking拨号网络的简称,此连接与default连接类似,用于执行一个拨号网络网桥,使载体能知道拨号网络流量的应用程序,此连接能与default连接同时使用View Code JAVA12345678java view plaincopyprint?1. /* 2. * A DUN-specific Mobile data connection. This connection may be the 3. * same as link #TYPEMOBILE but it may be different. This is used 4. * by applicaitons performing a Dial Up Networking bridge so that 5. * the carrier is aware of DUN traffic. It may coexist with default data 6. * connections. 7. */ 8. public static final int TYPE_MOBILE_DUN = 4; java view plaincopyprint?1. /* 2. * A DUN-specific Mobile data connection. This connection may be the 3. * same as link #TYPEMOBILE but it may be different. This is used 4. * by applicaitons performing a Dial Up Networking bridge so that 5. * the carrier is aware of DUN traffic. It may coexist with default data 6. * connections. 7. */ 8. public static final int TYPE_MOBILE_DUN = 4; /* * A DUN-specific Mobile data connection. This connection may be the * same as link #TYPEMOBILE but it may be different. This is used * by applicaitons performing a Dial Up Networking bridge so that * the carrier is aware of DUN traffic. It may coexist with default data * connections. */ public static final int TYPE_MOBILE_DUN = 4;适用场合:需要使用运营商无线热点的,CMCC、ChinaNet等5、hipri高优先级网络,与default类似,但路由设置不同。只有当进程访问移动DNS服务器,并明确要求使用requestRouteToHost(int, int)才会使用此连接(这个我也不太懂,翻译的应该很有问题.)View Code JAVA123456789java view plaincopyprint?1. /* 2. * A High Priority Mobile data connection. This connection is typically 3. * the same as link #TYPEMOBILE but the routing setup is different. 4. * Only requesting processes will have access to the Mobile DNS servers 5. * and only IPs explicitly requested via link #requestRouteToHost 6. * will route over this interface. 7. *hide 8. */ 9. public static final int TYPE_MOBILE_HIPRI = 5; java view plaincopyprint?1. /* 2. * A High Priority Mobile data connection. This connection is typically 3. * the same as link #TYPEMOBILE but the routing setup is different. 4. * Only requesting processes will have access to the Mobile DNS servers 5. * and only IPs explicitly requested via link #requestRouteToHost 6. * will route over this interface. 7. *hide 8. */ 9. public static final int TYPE_MOBILE_HIPRI = 5; /* *
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 中职数学基础模块下册《直线、平面垂直的判定与性质》教案
- 企业热电公司应急预案编制情况说明p26
- 调料厂岗位说明书
- JJF(津) 5001-2024 气象五参数监测仪校准规范
- 云南湿远2023-2024高三英语上学期开学考试试题
- 玻璃纤维增强聚酰胺的制造工艺
- 构建高效专业技术培训框架
- 五年级上册英语教案-Unit 3 Our Animal friends 译林版(三起)
- 低温仓储的关键技术与关键设备
- 输配电系统的电能质量改善
- 【粤教版】《劳动技术》五年级下册第四单元第2课《走进奶牛养殖场》课件
- 2024年广东省汕头市选调生考试(行政职业能力测验)综合能力测试题必考题
- 2024-2030年中国塑机辅机行业前景动态与应用趋势预测研究报告
- 个人房产抵押合同电子版
- 2024年昆山市乡村建设集团有限公司招聘笔试冲刺题(带答案解析)
- GB/T 43959-2024锅炉火焰检测系统技术规范
- 电梯每月电梯安全调度
- 2024年湖南省娄底市双峰县中考模拟预测生物试题
- 运动损伤的预防、治疗与恢复智慧树知到期末考试答案章节答案2024年汉中职业技术学院
- 黄浦区2022-2023学年八年级下学期期末数学试卷及答案(上海沪教版)
- 2024届广东省广州市增城区中考一模历史模拟试题(有答案)
评论
0/150
提交评论