APN settings in android

自古美人都是妖i 提交于 2019-12-24 09:49:32

问题


In my Android applications I would like to check if the APN settings set is the preferred APN.

Can I have a list of APN in android?


回答1:


You could try this list of APN's, it is from CyanogenMod 6.

http://github.com/CyanogenMod/android_vendor_cyanogen/blob/573afdd74db101ee6f20f3bd1c9976648414c834/prebuilt/common/etc/apns-conf.xml




回答2:


Key thing is the content provider URI: "content/telephony/carriers".

Please check this example of APN list handling:

code example




回答3:


The preferrede access point name depends on the network provider. You don't really want a list of APN's for all the phone companies in the whole world...?




回答4:


You have two databases, on keeps list of all the APN's that can be used, and second is preferred APN. Construct your list from one, and get preferred APN from another.



来源:https://stackoverflow.com/questions/4016229/apn-settings-in-android

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!