checkstudent08
Lurker
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);
can anyone help me out to send a MMS automatically with using inbuilt intent
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);
can anyone help me out to send a MMS automatically with using inbuilt intent