开发者

APN settings in android

开发者 https://www.devze.com 2023-01-22 09:07 出处:网络
In my Android ap开发者_运维知识库plications I would like to check if the APN settings set is the preferred APN.

In my Android ap开发者_运维知识库plications I would like to check if the APN settings set is the preferred APN.

Can I have a list of APN in android?


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


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

Please check this example of APN list handling:

code example


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...?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消