android dilaogs

7

Upload: deepa-rani

Post on 24-Jan-2015

41 views

Category:

Education


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: android dilaogs
Page 2: android dilaogs

What are notifications ?•The name itself implies their functionality. They are a way

of alerting a user about an event that he needs to be informed about or even take some action on getting that information.

The name itself implies their functionality. They are a way of alerting a user about an event that he needs to be informed about or even take some action on getting that information. The name itself implies their functionality. They are a way of alerting a user about an event that he needs to be informed about or even take some action on getting that information. The name itself implies their functionality. They are a way of alerting a user about an event that he needs to be informed about or even take some action on getting that information. 

•Notification on Android can be done in any of the following ways

Alert Dialogue Progress Bar Date Picker Time Picker

Page 3: android dilaogs

Alert Dialogue•A dialog is usually a small window that appears in front of

the current Activity.

The name itself implies their functionality. They are a way of alerting a user about an event that he needs to be informed about or even take some action on getting that information. The name itself implies their functionality. They are a way of alerting a user about an event that he needs to be informed about or even take some action on getting that information. The name itself implies their functionality. They are a way of alerting a user about an event that he needs to be informed about or even take some action on getting that information. 

•Dialogs are normally used for notifications that should interrupt the user and to perform short tasks that directly relate to the application in progress (such as a progress bar or a login prompt).

•Syntax to declare the AlertDialog box AlertDialogalertDialog =

new AlertDialog. Builder(Main.this).create();•Syntax to set your dialog's title like this

alertDialog.setTitle("Reset..."); (View Source)

Page 4: android dilaogs

Types Alert Dialogue

The name itself implies their functionality. They are a way of alerting a user about an event that he needs to be informed about or even take some action on getting that information. The name itself implies their functionality. They are a way of alerting a user about an event that he needs to be informed about or even take some action on getting that information. The name itself implies their functionality. They are a way of alerting a user about an event that he needs to be informed about or even take some action on getting that information. 

(View Source)

Page 5: android dilaogs

Progress Dialog

The name itself implies their functionality. They are a way of alerting a user about an event that he needs to be informed about or even take some action on getting that information. The name itself implies their functionality. They are a way of alerting a user about an event that he needs to be informed about or even take some action on getting that information. The name itself implies their functionality. They are a way of alerting a user about an event that he needs to be informed about or even take some action on getting that information. 

•This Progress Dialog can display a progress animation in the form of a spinning wheel, for a task with progress that's undefined, or a progress bar, for a task that has a defined progression.

•Syntax to declare the AlertDialog box ProgressDialog dialog = ProgressDialog.show(MyActivity.this, "", "Loading. Please wait...", true);

(View Source)

Page 6: android dilaogs

Date Picker

The name itself implies their functionality. They are a way of alerting a user about an event that he needs to be informed about or even take some action on getting that information. The name itself implies their functionality. They are a way of alerting a user about an event that he needs to be informed about or even take some action on getting that information. The name itself implies their functionality. They are a way of alerting a user about an event that he needs to be informed about or even take some action on getting that information. 

•Android provide a widget To Select Date we call it as Date Picker

This is the example of android date picker in android we have a widget to access the date picker directly initially the date picker will display the current date if the user want to change the date it is simple to change .

(View Source)

Page 7: android dilaogs

Time Picker

The name itself implies their functionality. They are a way of alerting a user about an event that he needs to be informed about or even take some action on getting that information. The name itself implies their functionality. They are a way of alerting a user about an event that he needs to be informed about or even take some action on getting that information. The name itself implies their functionality. They are a way of alerting a user about an event that he needs to be informed about or even take some action on getting that information. 

•Android provide a widget To Select Time we call it as Time Picker

This is the example of android time picker in android we have a widget to access the time picker directly initially the time picker will display the current time if the user want to change the time it is simple to change .

(View Source)