Advertisement
Online Test Banks
Score higher
See Online Test Banks
eLearning
Learning anything is easy
Browse Online Courses
Mobile Apps
Learning on the go
Explore Mobile Apps
Dummies Store
Shop for books and more
Start Shopping

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.

Intent Code
Start an activity startActivity(new Intent(this, Destination.class));
Create a chooser Intent.createChooser(yourIntent, "Please Select");
Open the web browser Intent i = new
Intent(Intent.ACTION_VIEW,
Uri.parse("http://example.org")); startActivity(i);
Start activity for a result startActivityForResult(yourIntent, YOUR_REQUEST_CODE);
  • Add a Comment
  • Print
  • Share
blog comments powered by Disqus
Advertisement
Advertisement

Inside Dummies.com

Dummies.com Sweepstakes

Win an iPad Mini. Enter to win now!