Following is the piece of code by which i am trying to open the android
device default sms application with message and number to be prefilled

String uri = "smsto:4162315";
String body = "hiiiiiiiiiiiiiiiiiiiiiiiiiiii";
Intent sendIntent = new Intent(Intent.ACTION_SENDTO);
                sendIntent.addCategory(Intent.CATEGORY_DEFAULT);
                sendIntent.setType("vnd.android-dir/mms-sms");
                sendIntent.setData(Uri.parse(uri));
                sendIntent.putExtra("sms_body", body);
                sendIntent.putExtra("compose_mode", true);
                startActivity(sendIntent);


when i run this code in android 4.0 emulator the sms application opens with
the data prefilled but when in run in device i am getting only the body and
not the number.

when i check it with android 3.0, it is to be vice versa, the number gets
filled and body is been empty.

Does anyone know the solution for this problem?


-- 
K Siva Sankar

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to