tags:

views:

71

answers:

3
+1  Q: 

Alert in android.

I am having a bitmap image. Can i show it in a Alert Dialog in android?

+6  A: 

You can create a custom dialog.

Andrei Bularca
+1  A: 

you can simply call the AlertDialog.Builder and set your image in there as setIcon(Drawable ) this way you will be able to put up you image on Dialog..

Abhinava
A: 

Similar to what Abhinava said, you can also create an ImageView, place your bitmap in there, and send the ImageView to the builder using AlertDialog.Builder.setView(View).

The difference here being that your bitmap will be shown in the content area of the alert dialog instead of in the title.

Josh