Android AlertDialog Example

By using android alert dialog example we can perform some action according to that dialog.

Android AlertDialog Example :-

To ask user permission for "Exit ?" we can use Android AlertDialog with Yes or No Button.

Set icon for title bar in Android

In Android we have the facility to set an icon for the title bar.

In the below image the title bar contains only the title.
Title name is Iconic Memory

To set an icon in the title bar use the below piece of code...

[sourcecode language="java"]
public void onCreate(Bundle savedInstanceState)

Syndicate content