Sunday, 15 May 2011

android - How to programmatically send MMS without intent -



android - How to programmatically send MMS without intent -

i have application can send mms programmatically without resorting 3rd party applications using intents works in ics. however, jb onwards application fails send mms because cannot hold of apns. in particular, utilize next command apns phone:

list<apn> apns = cr.query(uri.withappendedpath(carriers.content_uri, "current"), null, null, null, null);

this request fails next exception:

java.lang.securityexception: no permission write apn settings: android.permission.write_apn_settings.

this happens on jb onwards. workaround carrier's mms apn information.

as per knowledge there no public api accomplish task.there no apis exposed android send mms.if want send mms have write code.please refer aosp code. https://github.com/android/platform_packages_apps_mms or can utilize intent , launch native messaging app.

android mms

No comments:

Post a Comment