I am trying to send Email.I use this code.Now i have a problem
Intent emailIntent = new Intent(Intent.ACTION_SEND);
I can not understand what is Intent.ACTION_SEND ? why use it? What's return Intent.ACTION_SEND ??Please help me.Thanks!!
I am trying to send Email.I use this code.Now i have a problem
Intent emailIntent = new Intent(Intent.ACTION_SEND);
I can not understand what is Intent.ACTION_SEND ? why use it? What's return Intent.ACTION_SEND ??Please help me.Thanks!!
ACTION_SENDdeliver data to someone else. Who the data is being delivered to is not specified; it is up to the receiver of this action to ask the user where the data should be sent.
For more informations : http://developer.android.com/reference/android/content/Intent.html#ACTION_SEND
For sending an email with that intent, you may have a look to :
The most straightforward and common use of the ACTION_SEND action is sending text content from one activity to another. For example, the built-in Browser app can share the URL of the currently-displayed page as text with any application. This is useful for sharing an article or website with friends via email or social networking. Here is the code to implement this type of sharing:
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send.");
sendIntent.setType("text/plain");
startActivity(sendIntent);
If there's an installed application with a filter that matches ACTION_SEND and MIME type text/plain, the Android system will run it; if more than one application matches, the system displays a disambiguation dialog (a "chooser") that allows the user to choose an app.