Image Saved is too small why?
<p>i want to take an image with the camera and save it into pictures folder... the only thing that i cannot resolve is why my image is saved in a small size...</p>

<p>Intent i = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
 startActivityForResult(i, TAKE_PICTURE);</p>

<p>protected void onActivityResult(int requestCode, int resultCode, Intent imageReturned) {
            super.onActivityResult(requestCode, resultCode, imageReturned);</p>

<pre><code>        switch(requestCode) {
      case TAKE_PICTURE:
             if(resultCode == RESULT_OK)
                { ByteArrayOutputStream bytes = new ByteArrayOutputStream();
                 photo.compress(Bitmap.CompressFormat.PNG, 100, bytes);                 

                 File f = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES)+ File.separator + "test3.png");
                 try {
                    f.createNewFile();
                    //write the bytes in file
                     FileOutputStream fo = new FileOutputStream(f);
                     fo.write(bytes.toByteArray());
                     fo.flush();
                     // remember close de FileOutput
                     fo.close();
                } catch (IOException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                }

                 }
                        }
                      }
</code></pre>
