开发者

how to append text adverisement to MMS message body

开发者 https://www.devze.com 2023-03-16 08:07 出处:网络
I am developing an android app,in that i am implementing MMS functionality by using intents. The following is my code.

I am developing an android app,in that i am implementing MMS functionality by using intents.

The following is my code.

Intent sendIntent = new Intent(Intent.ACTION_SEND, 
                    Uri.parse("mms://")); 
                    sendIntent.setType("image/jpeg"); 
                    String url = "file://sdcard//tmpPhoto.jpg"; 
                    sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(url));
                        sendIntent.setClassName("com.android.everytize", "Continue");
                        startActivity(In开发者_Python百科tent.createChooser(sendIntent, "MMS:"));

when i click on MMS button its invoking the built in MMS app.But i want to append text advertisement(from server) to the body of the message while sending.by using Httpget method ,i am calling server and getting the advertisement.Now i want to append this advertisement to the body of text message.how to do.Thanks in advance.


If you want to append text to the sms/mms body, all you need to do is:

Intent messageIntent = new Intent(Intent.ACTION_SEND, Uri.parse("mms://"));
messageIntent.putExtra("sms_body", "some text");
0

精彩评论

暂无评论...
验证码 换一张
取 消