List of Intent params for default OS applications/activities

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

List of Intent params for default OS applications/activities

Postby Syl » Wed Mar 10, 2010 2:49 pm

I think a lot of people would like to have a list of parameters that can be set to an Intent in order to start an application or activity provided by the OS.

In my own case, I'm looking for the intent parameters that could start the e-mail client on the inbox page...

Do you know where could I find a list of intent parameters and have a description of the resulted action ?

I find these 2 URLs :

Intents List: Invoking Google Applications on Android Devices

Open intents - List of Intents


If you know other intent parameters, it could be great to share them in this post ! :D

As my opinion, a convenient way to present them is to show an example for each one like this :

[hr]
Intent 1 : Start the e-mail client to send a new message with value initialization

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
  2. emailIntent .setType( "plain/text" );
  3. emailIntent .putExtra( android.content.Intent.EXTRA_EMAIL, new String[]{ "mail1@example.com", "mail2@example.com" } );
  4. emailIntent .putExtra( android.content.Intent.EXTRA_SUBJECT, "Mail subject" );
  5. emailIntent .putExtra( android.content.Intent.EXTRA_TEXT, "The message in the e-mail body" );
  6. startActivity( Intent.createChooser(emailIntent, "Title" ) );
Parsed in 0.031 seconds, using GeSHi 1.0.8.4

[hr]
Syl
Junior Developer
Junior Developer
 
Posts: 14
Joined: Wed Oct 21, 2009 11:03 am

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 6 guests