I tried to follow this answer about sending MMS through code.
However, I stopped when he start talking about BroadCastRecivers and Android git and not providing the code. I really get lost with this. It was very straight at the beginning but it becomes so complicated after that.
Can any one explain the missing code in that answer or provide it if it is exist ?
Thanks a lot
To those who might be interested:
MMS Functionality is a bit unreliable, not well-documented feature in Android. So, the existed solutions will not work always. You can't depend on them, yet.
In order to send MMS on Android, you can alternatively use a commercial MMS SDK instead of using the internal stack.
There's one from Winwap here that let's you send and receive MMS messages with simple functions, like the send-example from their docs:
1. Initialize the API by calling the mmss_init function
2. Connect to the HTTP Proxy or WAP Gateway using the mmss_connect function
3. Create MMS message of type SEND_REQUEST_TYPE by calling mms_message_create function
4. Add MMS headers using mms_set_header_str, mms_set_header_encstr or mms_set_header_long functions. Mandatory headers TRANSACTION_ID, FROM and CONTENT_TYPE shall be set. Also at least one of the headers TO, CC or BCC shall be set. Other headers suitable for this type of message are optional
5. Add content to MMS Message by the help of mms_add_content function
6. Call the mmss_send_message function
7. Destroy MMS message using mms_message_destroy function
8. Disconnect from the HTTP Proxy or WAP Gateway using the mmss_disconnect function
9. Finalize the API by calling the mmss_fini function
The downside is, it's a commercial product not available for free.
I do not have experience in this type of problem but maybe this will help you out a bit:
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra("sms_body", "some text");
String url = "\\sdcard\\potrait.PNG";
sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(url));
sendIntent.setType("image/png");
startActivity(sendIntent);
This is a copy from here.
This is another example.
Related
I want to make unbound call using twilio. Like I am dialling number from twilio voice start demo and receiving call on dial number but can't talk. There is only cassette speaking on caller and receiver side both.
I have done below things
1) Create backed api using PHP for get access token of my twilio account which help of that I can make call.
2) Create on makeCall php file and set it to TwiML Apps.
3) Added my number in verified numbers in twilio panel as I have trial account of twilio.
Problem is when I am calling through quick start application it is listening me one cassette but can talk with both receiver and caller.
Any one can help me on this then it would be helpful.
Thanks in advance!
Twilio developer evangelist here.
So, you've completed the quickstart and managed to make a call and get a recorded response.
That response was created with TwiML, specifically <Say>. The PHP probably looks like this: $response->say("Thanks for calling!");
In order to connect to another caller, you need to use <Dial>. Replace the above say method with:
$response->dial("Number you wish to dial");
And try again, you should be connected through to the number you enter in the code.
Check out the overview on TwiML and the voice tutorial section in the Twilio docs for more on how to control calls with TwiML.
Hi guys I need help from you all in Android mobile number verification process. I have a android phone I just need to verify the otp but in this case they using the auto verification method is it possible to verify my otp through fwd the msg or by using prank message app Pls anyone help me to solve my problem and thx in advance...
Assuming that you are asking for "how to implement OTP verification". There are number of ways to tackle this. Please look at the below link for two ways of achieving this using Google authenticator or using a SMS gateway.
Android one time password (OTP)
here is the tutorial to read the incoming messages using Broadcast receiver if you are going to use the second method.
"Reading incoming messages using broadcast receiver."
I believe you are trying to implement a way you can implement your own TTS (Text-To-Speech) Verification system that prompts the user to enter in the code.
If so, you can use Nexmo's Text To Speech Prompt.
All you have to do is make an HTTP call (For example: https://api.nexmo.com/tts-prompt/json)
From here you can use the parameters you want such as,
text - Body of the text message to be read to the end user
machine_detection - How to react when an answering machine is detected
lg - To determine what language the text is read in
bye_text - Body of the text message played after digits are entered successfully
failed_text - Body of the text message played after 3 failed attempts
There are many other parameters you can work with and customize your TTS prompt to capture/confirm data.
Full disclosure, I work at Nexmo
You can see more information how to implement this here
In my Android app I use the Temboo library to post on user's Facebook wall. Everything is OK except when the message contains non-ASCII characters. For example, if I try to publish the String "Oído", I get on Facebook: "O�do". I suppose I would need to set the charset for the Temboo library (if UTF-8 is not the default charset), but I find nothing on the documentation or I am missing something.
I work at Temboo. We made some updates based on your question so encoding should work fine for you now. Please try again and let me know if you're still seeing the issue.
If you ever want to ask us questions directly, the best approach is to contact us via email:
support#temboo.com
We're always available and happy to help.
I should send email trough app but I want send it from another mail account (no gmail). I've coded a class Mail and I set host="mail#xxxxxx.xx" but in debug mode I've seen that variable host is = "smtp.gmail.com". How is possible? There is a trick?
You're using the JavaMail API to send the mail, right?
Check the JavaMail FAQ, there's several ways to specify the host you want to connect to, including setting a property or passing it explicitly in the call to the connect method. Without more detail on what exactly you're doing, it's hard to say where you went wrong.
I have downloaded source code for mms application from android.git.kernal.org site.But It showing errors for some of the packages missing like androidprovider.telephony.mms.
How to add androidprovider.telephony.mms to my application..?or can any one suggest a better approach for sending mms without using native intents and httppost method
(How to send image via MMS in Android?).
How to add androidprovider.telephony.mms to my application
You don't. The MMS application can only be built as part of a full firmware build.