Using a custom APN to connect

I am developing an application where I need to make a connection to a server, access to which is possible only through a special APN. Therefore, I want to know whether it is possible to specify the APN for use only for one connection (or application) and use it, perhaps even if Wi-Fi is active?

+5
source share
1 answer

First, for the ability to make changes to the APN for your application, you probably need WRITE_APN_SETTINGS permission . You can create a UI so that the user can configure the APN with this code:

Intent intent = new Intent(Settings.ACTION_APN_SETTINGS);
startActivity(intent);

, , . .

+1

All Articles