Hi,
I'm using the default Camera application to take picture and perform
some transformation.
The Camera App results returns an image 408 x 306 but this is not
correct, since the image on the camera app is saved 3264 x 2448. Is
there any limitation that is causing this? Thanks in advance, Rafael.
Android: 2.3.2
Sony Ericsson Xperia ARC
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main2);
ImageButton b = (ImageButton) findViewById(R.id.btOpenCamera);
b.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Intent i = new
Intent("android.media.action.IMAGE_CAPTURE");
startActivityForResult(i,0);
}
});
@Override
protected void onActivityResult(int requestCode, int resultCode,
Intent data)
{
super.onActivityResult(requestCode, resultCode, data);
if(data!=null)
{
Bundle bundle = data.getExtras();
if(bundle != null)
{
Bitmap bitmap = (Bitmap)bundle.get("data");
int H = bitmap.getHeight(); //always 408
int W = bitmap.getWidth(); //always 306
.....
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en