Where is com.google.android.mms.*? [closed]

主宰稳场 提交于 2019-12-06 10:49:02

问题


I am writting an application that will send MMS messages from an android phone and I am trying to follow the instructions on this post:

How to send image via MMS in Android?

My problem now is I can't find the libraries used there, like com.google.android.mms.*

Can anyone point me to that?

Is there any MMS library I can plug in my project? It is kinda weird that google does not provide that for the developers...

Thanks,

Joao Paulo Farias


回答1:


you can get it this way

Class pduparserclass = Class.forName("com.google.android.mms.<the class>");

since the class is present on the device but not in the sdk. this will not work on the emulator




回答2:


One way is to download the jar, and have it added to your build path. You can download at http://www.java2s.com/Code/Jar/a/Downloadandroidsrcjar.htm




回答3:


com.google.android.mms is an internal package in Android's source code. It is not intended to be used by other apps.

The link you posted already contains code on how to send an MMS using the proper API in aioobe's answer (who in turn linked to another answer that had it).



来源:https://stackoverflow.com/questions/5099554/where-is-com-google-android-mms

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!