Displaying images in a dialog box
<p>I have an image and I am currently setting it on an imageview.</p>

<p>I want that when the Imageview is clicked , a pop up like a dialog box should appear that displays the image .. Any method how can I acheive this.</p>

<pre><code>                Context mContext = getApplicationContext();
                Dialog dialog = new Dialog(mContext);

                dialog.setContentView(R.layout.customdialog);
                dialog.setTitle("wateva");

                ImageView ivDialog = (ImageView) dialog.findViewById(R.id.ivDialog);
                String filepath = Environment.getExternalStorageDirectory().getPath();
                folder = new File(filepath,"checking");

                File fa = new File(folder,"bmp1.png");
                Bitmap bmpa = BitmapFactory.decodeFile(fa.getAbsolutePath());
                Log.d("error " , "here");
                ivDialog.setImageBitmap(bmpa);
                dialog.show();
</code></pre>
