I have a question about an intent... I try to launch the sms app...
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setType("vnd.android-dir/mms-sms");
int flags = Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP |
Intent.FLAG_ACTIVITY_CLEAR_TOP;
intent.setFlags(flags);
intent.setData(Uri.parse("content://sms/inbox"));
context.startActivity(intent);
so, you can see that I put too much things in my intent, but that's because I don't know how I can do... Thank's
You can open default sms App and pass details as below :
Note : If u want to send to many numbers, separate each number with ";" inside string
|Or| Use this function :
Use
Sms Intent :
I use:
If you want to launch SMS Composing activity from some of your other activity and you also have to pass a phone number and SMS text, then use this code:
Note: here the
sms_body
andsmsto:
is keys for recognizing the text and phone no at SMS compose activity, so be careful here.