title: Image display small in lollipop 5.0
body: <p>I am showing <strong>Bitmap Image</strong> in my code through <strong>URL</strong>. Image appears with correct size in other devices but appears <strong>too small</strong> in lollipop version.</p>
  
  <p>How can i solve this issue?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>try {
              String imageUrl=params[0];
              url = new URL(AppConstants.BASE_URL+"Images/"+imageUrl);
              bm = ImageThreadLoader.readBitmapFromNetwork(url);
              bitmap_new = Bitmap.createBitmap(bm.getWidth(),bm.getHeight(), Config.ARGB_8888);       
              Canvas canvas = new Canvas(bitmap_new);
              final int color = 0xff424242;
              final Paint paint = new Paint();
              final Rect rect = new Rect(0, 0, bm.getWidth(),bm.getHeight());
              final RectF rectF = new RectF(rect);
              final float roundPx = 17.0f;
              paint.setAntiAlias(true);
              canvas.drawARGB(0, 0, 0, 0);
              paint.setColor(color);
              canvas.drawRoundRect(rectF, roundPx, roundPx, paint);
  
              paint.setXfermode(new PorterDuffXfermode(Mode.SRC_IN));
              canvas.drawBitmap(bm, rect, rect, paint);
          } catch (MalformedURLException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
  </code></pre>