How to show Alert Dialog / popup in Android

AlertDialog Example

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.

Windows Detected A Hard Disk Problem – Solved

If you are facing this problem on window of any version (latest or old version of window). You are looking a dialog frequently that says you.

Windows Detected A Hard Disk Problem

Back up your files immediately to prevent information loss, and then contact the computer manufacturer to determine if you need to repair or replace the disk.

Dialog look like following:-