Create Network Access Point Name with code,

I will give some examples: Getting default APN information: //path to APN table final Uri APN_TABLE_URI = Uri.parse(“content://telephony/carriers”); //path to preffered APNs final Uri PREFERRED_APN_URI = Uri.parse(“content://telephony/carriers/preferapn”); //receiving cursor to preffered APN table Cursor c = getContentResolver().query(PREFERRED_APN_URI, null, null, null, null); //moving the cursor to beggining of the table c.moveToFirst(); //now the cursor points to … Read more

Read APNs in Android 4.2?

If you want to Read APN for Android 4.2 and more they are a change to do. I tested and it’s work. In Android 4.1 and below use this : Cursor c = getContentResolver().query(Uri.withAppendedPath(Telephony.Carriers.CONTENT_URI, “current”), null, null, null, null); And for Android 4.2 and above use this code : private static final String[] APN_PROJECTION = … Read more