Bundled into theapk le before android can start an

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Receiver Content Resolver COMP 4521 (Muppala) Content Provider Android Overview 12 Intents •  Intents are asynchronous message objects to ac,vate components other than content providers –  Message consists of (for ac,vi,es and services) •  Ac,on being requested (MAIN/VIEW/EDIT/PICK/DELETE/DIAL/etc) •  URI of the data to act upon –  For broadcast receivers the message is the ac,on being announced –  Example public void onClick(View v) { . . . Intent in = new Intent(this,MainActivity.class); in.putExtra("Friend Name", name); } COMP 4521 (Muppala) startActivity(in); Android Overview 13 Intents (Contd.) •  Two kinds of intents: –  Explicit intent: explicitly specify the component’s name that should respond to the intent...
View Full Document

This document was uploaded on 03/12/2014.

Ask a homework question - tutors are online