HOW CAN YOUR APPLICATION PERFORM ACTIONS THAT ARE PROVIDED BY OTHER APPLICATION E.G. SENDING EMAIL?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
 1259  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    How can your application perform actions that are provided by other application e.g. sending email?

    Intents are created to define an action that we want to perform and the launches the appropriate activity from another application.

    Intent intent = new Intent(Intent.ACTION_SEND);
            intent.putExtra(Intent.EXTRA_EMAIL, recipientArray);
            startActivity(intent);

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!