Tuesday, September 22, 2015

Alert dialog in Android Studio

Let me try to provide a code snippet on how to get an alert popup with a simple OK button in Android

We would need to import

import android.app.AlertDialog;

The code snippet shown below will give a pop up with title as "Success" and a text message with OK button.







No comments:

Post a Comment