Ivan Kolev
Ivan Kolev

Reputation: 167

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 ?

Upvotes: 8

Views: 1279

Answers (1)

Abdul Wasae
Abdul Wasae

Reputation: 3686

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.

Upvotes: 1

Related Questions