Sunday 31 December 2017

How do I display an alert dialog on Android?

style="font-weight: bold;">

Answer



I want to display a dialog/popup window with a message
to the user that shows "Are you sure you want to delete this entry?" with one button
that says 'Delete'. When Delete is touched, it should delete
that entry, otherwise nothing.



I have written a
click listener for those buttons, but how do I invoke a dialog or popup and its
functionality?

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...