Is it possibile to open image in dialog without creating new activity?
If yes how to transfer this photo to a dialog.
Is it possibile to open image in dialog without creating new activity?
If yes how to transfer this photo to a dialog.
AlertDialog.Builder ImageDialog = new AlertDialog.Builder(MainActivity.this);
ImageDialog.setTitle("Title");
ImageView showImage = new ImageView(MainActivity.this);
ImageDialog.setView(showImage);
ImageDialog.setNegativeButton("ok", new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface arg0, int arg1)
{
}
});
ImageDialog.show();