简体   繁体   中英

How to add APN in Android (KitKat and above) programmatically

I am trying to make app that makes Internet and MMS settings, if the mobile operator does not support automatic settings by sms for the current device. As it is restricted to write or read APNs from Android 4.2, if the application is not system. I decided to compose and send sms with configuration settings ( or imitate that such is received). How to compose such sms with APN configuration settings, that the mobile operators send automatically, when you connect to their network ? Is that a good decision, or there is a easier way to achieve my goal ?

It is indeed done through SMS, but special kinds. They are called Over-The-Air messages (OTA).

Read this to know about OTA in depth.

Also, i found a link that apparently describes how to send theme OTA SMS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM