Tutorial

Tutorials, how to’s with large content

  1. Home
  2. chevron_right
  3. Tutorial
  4. (Page 8)

Android How To Make an AlertDialog

turned_in_not
commentNo Comments
To make an AlertDialog you have to write this code: AlertDialog.Builder alertDelete = new AlertDialog.Builder(ListsActivity.this); //HERE YOU WILL WRITE THE MESSAGE YOU WANT alertDelete.setMessage(R.string.delete_confirm); //HERE IS THE POSITIVE BUTTON. YOU HAVE TO SET THE BUTTON NAME AND A CLICK LISTENER…
Menu