Created
November 22, 2012 21:42
-
-
Save jcarlos7121/4133031 to your computer and use it in GitHub Desktop.
Convert drawable from bitmap on Android
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Drawable d = new BitmapDrawable(getResources(),bitmap); | |
| alertDialog.setTitle("Product Information"); | |
| alertDialog.setMessage(myProduct.getMyProductInfo()); | |
| alertDialog.setButton("Back", new DialogInterface.OnClickListener() { | |
| @Override | |
| public void onClick(DialogInterface dialog, int which) { | |
| showPrompt(); | |
| } | |
| }); | |
| alertDialog.setIcon(d);//<--Here Need to Provide a different image each time | |
| alertDialog.show(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment