by
6,450 23
1
6
3,782
0
Top 1% !
Popular
Famous
Tagged
Specified
OpenSource
Popularity: 3032nd place

Published on:

AndroidADT
Languagejava
Languageprocessing
LicenseMIT_X11

Alert Dialog

How to create an alert dialog with AlertDialog class
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/210824/Alert-Dialog?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
//alert dialog Builder AlertDiag = new AlertDialog.Builder(this); AlertDiag.setTitle("Alert!"); AlertDiag.setMessage("your message"); AlertDiag.setNeutralButton("OK", null); AlertDiag.show();
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus