I am developing an android application which will send MMS. But to send mms in need to read APN settings of user. I searched on internet. But the solution i get is by using Content Provider with uri of
"content://telephony/carriers/preferapn".
But when ever i call it using
Cursor c = this.getContentResolver().query("content://telephony/carriers/preferapn",null,null,null,null);
It is throwing exception of "No permission to write APN settings". But i only want to read. Not write. Please tell me how to read apn settings. Only read, Not write. I am developing application which will support SDK 15 and above.