Hai , I need a solution for , how to send an image behind the scenes i.e; with out users further input ? Can any one help me to sort out this ?
thanking you . Srinivas
Hai , I need a solution for , how to send an image behind the scenes i.e; with out users further input ? Can any one help me to sort out this ?
thanking you . Srinivas
Whatever "send an image behind the scenes" means, to launch an action delayed in time without users further input you can use the following code:
// Need handler for callbacks to the UI thread
final Handler mHandler = new Handler();
// Create runnable for posting
final Runnable doSomething = new Runnable() {
public void run() {
sendImageBehindScenes();
}
};
// launch doSomething after 2000 milliseconds
mHandler.postDelayed(doSomething , 2000);
If this doesn't answer your question, please rephrase it.
Uri uri = Uri.fromFile(new File(imagePath));
Intent i = new Intent(Intent.ACTION_SEND);
// i.setAction(Intent.ACTION_VIEW);
i.setType("image/jpeg");
i.putExtra("sms_body", autoMessage);
i.putExtra("address", phoneNumber);
i.putExtra(Intent.EXTRA_STREAM, uri);
startActivity(i);
This is the code am using to send mms , its fire mms application again ?