![]() String text = editText.getText().toString().trim() Get a reference to “Send email” button and add a click listener as in the previous tasks. The text of the email will be from the MainActivity EditText. Edit the fields below with the receiver email, title and subject. These are some standard categories used in an Intent:įor this task you need to have configured in your emulator's email client an email address or to run the app on a phone which has been already configured ![]() This specifies which component can handle the intent. These are some standard data fields used in an Intent:īCC, CC, EMAIL, TITLE, TEXT - these are all used to create an intent for an email message that will contain BCC(blind CC), CC(carbon copy), EMAIL(address), SUBJECT(email subject), TEXT(the text that forms the body of the email). parse ( "smsto:" ) ) // setting the data (this uri can also be specified as second param in the constructor) ![]() If the URIs are similar and the MIME type can not be inferred it should be specified. The URI is a reference to the data on which the action will be done. In general it is an URI and/or MIME type of the data. ![]() Static final String ACTION_START_ENGINE = "_ENGINE" īased on the specified action the data field can take different values. They respect the same rules by adding the application package name before the name of the action: You can have actions defined in other classes, such as AlarmClock with actions for managing the alarms
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |