Wednesday, 13 August 2014

Common Android Intent Usage

You’ll use a few basic intents most of the time while developing apps for Android. The following table shows you the code for several basic Android intents.

Start an activitystartActivity(new Intent(this, Destination.class));
Create a chooserIntent.createChooser(yourIntent, "Please Select");
Open the web browserIntent i = new
Uri.parse("")); startActivity(i);
Start activity for a result                startActivityForResult(yourIntent, YOUR_REQUEST_CODE);

No comments:

Post a Comment