Create an Alert Dialog


/ Published in: Java
Save to your folder(s)



Copy this code and paste it in your HTML
  1. new AlertDialog.Builder(this)
  2. .setMessage("There was an error loading data")
  3. .setPositiveButton("Ok", null)
  4. .show();

URL: http://developer.android.com/guide/appendix/faq/commontasks.html#alerts

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.