StartActivity(Intent.createChooser(email, "Choose an email client from.")) Intent email = new Intent(Intent.ACTION_SEND, Uri.parse("mailto:")) Įmail.putExtra(Intent.EXTRA_EMAIL, recipients) Įmail.putExtra(Intent.EXTRA_SUBJECT, subject.getText().toString()) Įmail.putExtra(Intent.EXTRA_TEXT, body.getText().toString()) Specified selector given the appropriate interface to let the user decide how to send his message data. For this purpose, you need to send ACTION_SEND activity with a suitable selector to Android intention processor. Intent itself (an Intent object) is a passive data structure that holds the abstract description of the operation to be performed.įor example, you have an active, open the mail client and send mail to your Android device. It can be started by a startActivity activities, broadcastIntent to send broadcast it to any interested radio receiver components, startService (Intent) or bindService (Intent, ServiceConnection, int) to communicate with back-end services. Previous: Android fragmentation transitionĪndroid intent is an abstract description of the action to be executed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |