Re-Size Bitmap image..?
<p>I want to re-size an particular size image on orientation change.The above code i tried, But its not working..???</p>

<pre><code>@Override
    public void onConfigurationChanged(Configuration newConfig) 
    {
    super.onConfigurationChanged(newConfig);
    if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT)
            {
                Toast.makeText(this, "portrait", Toast.LENGTH_SHORT).show();
            }
    else if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) 
            {
                myImage = Bitmap.createBitmap(BitmapFactory
                        .decodeResource(this.getResources(), R.drawable.pic));
                Display d = ((WindowManager)getSystemService(WINDOW_SERVICE))
                     .getDefaultDisplay();

              int ScreenHeight = d.getHeight();
              int ScreenWidth = d.getWidth();

                Bitmap ScaledImage = Bitmap.createScaledBitmap(myImage , ScreenWidth, ScreenHeight, true);

                imageview = (ImageView)findViewById(R.id.imageView2);
                imageview.setImageBitmap(ScaledImage);

    }
</code></pre>
