It is used to Start an Activity Start a Service Deliver a Broadcast

Slides:



Advertisements
Similar presentations
Android Application Development A Tutorial Driven Course.
Advertisements

Google Android Introduction to Mobile Computing. Android is part of the build a better phone process Open Handset Alliance produces Android Comprises.
Programming with Android: Activities and Intents
CE881: Mobile and Social Application Programming Simon M. Lucas Quiz, Walkthrough, Exercise, Lifecycles, Intents.
Application Fundamentals Android Development. Announcements Posting in D2L Tutorials.
Programming with Android: Activities and Intents Luca Bedogni Marco Di Felice Dipartimento di Scienze dell’Informazione Università di Bologna.
Programming with Android: Activities and Intents Luca Bedogni Marco Di Felice Dipartimento di Informatica – Scienza e Ingegneria Università di Bologna.
Intents.
Intents and Intent Filters.  Intents are data structures that specify  Operations to be performed  Events that have occurred  Broadcast by one component.
Mobile Programming Pertemuan 6 Presented by Mulyono Poltek NSC Surabaya.
Intent An Intent describes the operation to be performed. Intents are used to start an activity using either of the following methods – Context.startActivity()
Android Middleware Bo Pang
Lecture 3 agenda Layouts Intents (both explicit and implicit) ListViews and Adapters.
About me Yichuan Wang Android Basics Credit goes to Google and UMBC.
박 종 혁 컴퓨터 보안 및 운영체제 연구실 MobiSys '11 Proceedings of the 9th international conference on Mobile systems, applications,
 Understanding an activity  Starting an activity  Passing information between activities  Understanding intents  Understanding the activity lifecycle.
© Keren Kalif Intro to Android Development Written by Keren Kalif, Edited by Liron Blecher Contains slides from Google I/O presentation.
Rajab Davudov. Agenda Eclipse, ADT and Android SDK APK file Fundamentals – Activity – Service – Content Provider – Broadcast Receiver – Intent Hello World.
Intent Android Club Agenda Intent class Explicit activation Implicit activation.
Android ICC Part II Inter-component communication.
Erika Chin Adrienne Porter Felt Kate Greenwood David Wagner University of California Berkeley MobiSys 2011.
CS378 - Mobile Computing Intents.
1 CMSC 628: Introduction to Mobile Computing Nilanjan Banerjee Introduction to Mobile Computing University of Maryland Baltimore County
Overview of Android Application Development
CS378 - Mobile Computing Intents. Allow us to use applications and components that are part of Android System – start activities – start services – deliver.
COMP 365 Android Development.  Every android application has a manifest file called AndroidManifest.xml  Found in the Project folder  Contains critical.
Intent Erick Pranata © Sekolah Tinggi Teknik Surabaya 1.
Lec 03 Intents Explicit Intents Implicit Intents.
1 CMSC 628: Introduction to Mobile Computing Nilanjan Banerjee Introduction to Mobile Computing University of Maryland Baltimore County
Applications with Multiple Activities. Most applications will have more than one activity. The main activity is started when the application is started.
Working with Multiple Activities. Slide 2 Introduction Working with multiple activities Creating multiple views Introduction to intents Passing data to.
Lec 04 Intents and Bundles Fragments. Activated by Intents Activities Services Broadcast Receivers (aka Receivers) (
Introducing Intents Intents Bind application components and navigate between them Transform device into collection of interconnected systems Creating a.
Android Permissions Demystified
Services Background operating component without a visual interface Running in the background indefinitely Differently from Activity, Service in Android.
Lecture 2: Android Concepts
Technische Universität München Services, IPC and RPC Gökhan Yilmaz, Benedikt Brück.
Activities and Intents Chapter 3 1. Objectives Explore an activity’s lifecycle Learn about saving and restoring an activity Understand intents and how.
Speech Service & client(Activity) 오지영.
Intents and Broadcast Receivers Dr. David Janzen Except as otherwise noted, the content of this presentation is licensed under the Creative Commons Attribution.
Working with Multiple Activities. Slide 2 Introduction Working with multiple activities Putting together the AndroidManifest.xml file Creating multiple.
Editing a Twitter search. Viewing search results in a browser.
CS371m - Mobile Computing Intents 1. Allow us to use applications and components that are already part of Android System – start activities – start services.
Guided By: Dr. Mingon Kang
Android Mobile Application Development
Reactive Android Development
Lecture 2: Android Concepts
Programming with Android:
Android 5: Interacting with Other Apps
Linking Activities using Intents
Reactive Android Development
Android System Security
Lecture 3 agenda A tour of Android studio features
MAD.
Activities and Intents
Mobile Application Development BSCS-7 Lecture # 3
CS371m - Mobile Computing Intents.
Android Programming Lecture 5
Application Development A Tutorial Driven Course
Activities and Intents
Android Topics What are Intents? Implicit Intents vs. Explicit Intents
Add to the Coffee Ordering App
Activities and Intents
Android Developer Fundamentals V2 Lesson 5
Activities and Intents
Introduction to Android
Lecture 2: Android Concepts
Mobile Programming Dr. Mohsin Ali Memon.
Chapter 5 Your Second Activity.
Activities, Fragments, and Intents
Presentation transcript:

It is used to Start an Activity Start a Service Deliver a Broadcast Intents It is used to Start an Activity Start a Service Deliver a Broadcast

Explicit Intent Implicit Intent Intent Types Explicit Intent Implicit Intent

Explicit Intents Specify the component to start by name (fully quailed name) Typically used to start activities within the same application or to start a service in response to user interaction When you create an explicit intent to start an activity or service, the system immediately starts the app component specied in the Intent object

Implicit Intents Do not specify a specic component but instead declare a general action to perform The system figures out the appropiate app/activity to handle it For example, opening Google Maps to show the location from your app or Share or Phone.

Resolution of Implicit Intents Activity A creates an Intent with an action description and passes it to startActivity(). The Android System searches all apps for an intent filter that matches the intent. When a match is found The system starts the matching activity (Activity B) by invoking its onCreate() method and passing it the Intent

Building an Intent Component Name The name of the component to start. Critical for Explicit Intents Action A string that species the generic action to perform (such as view or pick) Data The URI object that references the data to be acted on and/or the MIME type of that data Category A string containing additional information about the kind of component that should handle the intent Extras Key-value pairs that carry additional information required to accomplish the requested action Flags Flags defined in the Intent class that function as metadata for the intent

Questions ?