O'Reilly logo

Android User Interface Development by Jason Morris

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating and consuming intents

The Intent class is Android's primary method of "late binding". It's a form of very loose coupling which allows you to specify an action (along with some parameter data), while not specifying how the action should be carried out. For example, you may specify browse to http:// www.packtpub.com/ using an Intent, but you don't need to specify how Android should carry out this action. It may use the default "browser" application, or another web browser the user has installed, or it may even ask the user how exactly they want to get to http:// www.packtpub.com/. There are two primary types of Intent:

  • Explicit Intents
  • Implicit Intents

So far we've only made use of explicit Intent objects, where we specify the exact class ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required