Building blocks of android

4,081 views 12 slides Apr 15, 2017
Slide 1
Slide 1 of 12
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12

About This Presentation

Building blocks of android


Slide Content

Building Blocks of Android Presented By Siddhesh Palkar 1

Building Blocks 2

Building Blocks Activity Intent Services Broadcast Receiver Content Provider 3

Activity The Activity is the basic building block of every visible Android application. Every screen in an application is an activity by itself. They work together to present an application sequence, each activity is an independent entity . Activities typically involve an interaction with a user . 4

Intent Intent is used to invoke components. It is mainly used to : Start the service Launch an activity Display a web page Display a list of contacts Broadcast a message Dial a phone call etc . 5

Services Service is a background process that can run for a long time. There are two types of services local and remote. Local service is accessed from within the application whereas remote service is accessed remotely from other applications running on the same device. 6

Broadcast Receiver The Broadcast Receiver is yet another type of component that can receive and respond to any broadcast announcements. In particular, it is used to listen for Intents. 7

Content Provider The Content Providers are components that expose a specific set of data to applications. They provide the tools to manage access and define security for the data. If data is only going to be used in your application, then a content provider is unnecessary. It is only needed to communicate and share that data outside the application. 8

Additional Components Views : UI elements that are drawn on-screen including buttons, list forms etc. Layouts : View hierarchies that control screen format and appearance of the views. Manifest : Configuration file for the application 9

Notifications Android allows to put notification into the title bar of your application. The user can expand the notification bar and by selecting the notification the user can trigger another activity. Types of Notifications: Toast Notifications Status Bar Notifications Dialog Notifications 10

Resources Android supports that resources like images and certain XML configuration files, can be kept separate from the source code. Resource files must be placed in the /res directory in a predefined sub-folder dependent on their type. 11

Thank You 12