Android: send SMS Intent Help?

If you want to send a multi-line message just put a newline between the 2 strings x + "\n" + y if want to send multiple messages there is no way to do that, that I am aware of. You could use startActivityForResult1 then in your activities onActivityResult2 method you can send then next message 1: http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content. Intent int) 2: developer.android.com/reference/android/... int, android.content.

Intent).

If you want to send a multi-line message just put a newline between the 2 strings. X + "\n" + y if want to send multiple messages there is no way to do that, that I am aware of. You could use startActivityForResult1 then in your activities onActivityResult2 method you can send then next message.1: http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.

Intent, int) 2: developer.android.com/reference/android/..., int, android.content. Intent).

Its so simple haha, thanks so much! = – nubme Feb 16 at 7:51.

The problem is that you are overriding the extended data, as putExtra is not adding to a list everything you write inside the Bundle argument (the second one), but resetting its content. That is why you can only see the last part, because you first set the extra named "sms_body" to " World" and then you reset it to "You Rock! ".

I haven't tried it, but it could work if you do something like this: String smsBody=" "; Intent sendIntent = new Intent(Intent. ACTION_VIEW); sendIntent. PutExtra("sms_body", smsBody); sendIntent.

SetType("vnd. Android-dir/mms-sms"); startActivity(sendIntent); The character \n is a newline (http://en.wikipedia.org/wiki/Newline) special character, which means that you are writing that string in two lines (splitting them right where \n is). \n is present in almost every String representation, so it could work here too.

Give it a try and tell us. By the way and just as an advice, try to give understandable names to variables (not just x or y). If you want to reuse code or you find errors, you may want to know what exactly x or y are.

Best regards.

Ya thanks a lot for the help I got it working. I use x, y to simply the example on stackoverflow. – nubme Feb 16 at 8:07 ok, it was a "just in case" reminder =) – Kor Feb 16 at 8:23.

That is why you can only see the last part, because you first set the extra named "sms_body" to "Hello World" and then you reset it to "You Rock!". The character \n is a newline (http://en.wikipedia.org/wiki/Newline) special character, which means that you are writing that string in two lines (splitting them right where \n is). \n is present in almost every String representation, so it could work here too.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions