I have a camera application in which i am taking an image and storing it in the SD Card .
When i check the resolution of the image stored , it is found as 120X160 pixels.
But , the normal image taken by the camera is 640X480 pixels.
I donot want the resolution to get decreased . Can u plz explain why is this happening??
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
// TODO Auto-generated method stub
super.onActivityResult(requestCode, resultCode, data);
if(resultCode == RESULT_OK){
Bundle extras = data.getExtras();
Bitmap bmp1 = (Bitmap) extras.get("data");
//now storing the image in sdcard, folder name is same as the model name
ByteArrayOutputStream bytes1 = new ByteArrayOutputStream();
scaled1.compress(Bitmap.CompressFormat.PNG, 100, bytes1);
File f1 = new File(folder,"bmp1.png");
try {
f1.createNewFile();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
FileOutputStream fo1 = null;
try {
fo1 = new FileOutputStream(f1);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
try {
fo1.write(bytes1.toByteArray());
fo1.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
Wil i have to create my own camera Activity?? I am a beginner .. so please help