Can I programmatically switch APN to android?

I am trying to develop an application in which I need to connect to a specific APN programmatically for network testing purposes.

As a user, I can do this by going to "Settings" → "Wireless Networks" → "Mobile Networks" (long press) → "Access Point Names". This will even allow me to add a new one manually.

I want to know if there is a way the application can do this automatically? I have root privileges and everything you might need.

If anyone knows the source of Android, can you tell me where to look to learn the behavior of this screen? I tried to dive there, but I lost it.

+4
source share
2 answers

, 7383. , -.

ApnEditor, ApnSettings ( cyanogen). , , "" .

IDE, , make , android, , "ide-compatible",

, APN, . android.permission.WRITE_APN_SETTINGS, . , , , .

+6

, . Android.

apn

+1

All Articles