Android Custom Dialog Box, Custom Alert Dialog,
Create your own custom xml for custom dialog in layout folder like below.
Check how to show alert dialog with two buttons
It is veary easy to add three buttons on AlertDialog as shown in below picture
In Android alert dialog is like a popup message to confirm some thing from end user (user of your application /Â game).
In Android it is very easy to create / show alert dialog. Before deletion of any item it is necessary to confirm form user by AlertDialog. Code in following function is describing how to show a simple alert dialog in android application.
Service: is one of core component of Android.
Service have not any user interface, like dialogboxe or buttons etc. Service runs in background. We use service for long process like fetch long (time consuming) data from network, play sound in background or some process where user interaction is not necessary.