问题
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