title: bitmap bad quality after set to imageview
body: <p>I am creating a app that opens camera for user and after image captured it will be shows on ImageView! But the image in ImageView has very bad quality<br>
  here is the code:  </p>
  
  <pre><code>public class Camera extends AppCompatActivity implements View.OnClickListener {
  
  ImageView imgView;
  Button camera, setBackground;
  
  Intent i;
  
  int cameraData = 0;
  
  Bitmap bitmap;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.camera);
      initialize();
  }
  
  private void initialize() {
      imgView = (ImageView) findViewById(R.id.bPicture);
      camera = (Button) findViewById(R.id.bOpenCamera);
      setBackground = (Button) findViewById(R.id.bSetBackground);
  
      camera.setOnClickListener(this);
      setBackground.setOnClickListener(this);
  }
  
  @Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
      if(resultCode == RESULT_OK){
          Bundle extras = data.getExtras();
          bitmap = (Bitmap) extras.get("data");
  
          Bitmap resizedBmp = Bitmap.createScaledBitmap(bitmap, imgView.getWidth(),imgView.getHeight(), false);
          imgView.setImageBitmap(resizedBmp);
      }
  }
  
  @Override
  public void onClick(View v) {
      switch(v.getId()){
          case R.id.bOpenCamera:
              i = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
              startActivityForResult(i, cameraData);
              break;
          case R.id.bSetBackground:
              try {
                  WallpaperManager wallmngr = WallpaperManager.getInstance(this);
                  wallmngr.setBitmap(bitmap);
              } catch (IOException e) {
                  e.printStackTrace();
              }
              break;
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>what should I do to increase image quality?</p>