Hi hello I want to send a mms automatically,i am using the following code ,but its asking user to press a button
Intent intent = new Intent(Intent.ACTION_SENDTO); intent.putExtra("address", "12134567899"); intent.putExtra("sms_body", "See attached picture"); //intent.putExtra(Intent.EXTRA_STREAM, //Uri.parse("content://media/external/images/thumbnails/ 0")); intent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:///sdcard/DCIM/Camera/2011-09-09 12.47.29.jpg")); intent.setType("image/png"); // This is added just so the AndroidTestCase launches the activity as expected, remove this line in your production code intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); //intent.se startActivity(intent); -- 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