We aer aware of this problem.
Try this approach to work around:
To get the full size picture you can do like this:
private void launchStillPictCamera(){
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
try {
startActivityForResult(intent, 42);
} catch (ActivityNotFoundException e) {
//Do nothing for now
}
}
and upon activity result:
@Override
protected void onActivityResult(int requestCode, int resultCode,
Intent data) {
super.onActivityResult(requestCode, resultCode, data);
switch (resultCode) {
case RESULT_OK:
if (requestCode == 42) {
String photoPath = null;
if(data!=null && data.getData()!=null) {
Uri photoUri = data.getData();
String[] projection =
{ MediaStore.Images.ImageColumns.DATA };
Cursor c = managedQuery(photoUri, projection,
null, null, null);
if (c!=null && c.moveToFirst()) {
photoPath = c.getString(0);
}
Log.v("PhotoPath", photoPath);
//And now the photo can be copied or moved as of your own choice using
output/input streams of your own choice
}
} else {
System.out.println("Yada request code NOK");
}
break;
default:
System.out.println("Result NOK");
}
}
Kind regards
/Johan
On Jan 1, 7:55 pm, Nikola <nikola1...@gmail.com> wrote:
> New phones tested.
>
> > Running on following phones:
>
> > 1) SonyEricsson X8 (E15i) OS: Android 2.1 update 1
> > 2) SonyEricsson X10i OS: Android 2.1 update 1
>
> > 3) Galaxy i9000 2.2 jpo
>
> 4) Htc Desire HD froyo 2.2
>
>
>
> > Phone 1 works fine. Preview is visible and picture is created.
>
> > Phone 2 doesn't work at all, doesn't create picture, there is no preview.
>
> Phone 3 works fine.
> Phone 4 works fine.
>
> --
> God is Real, unless declared Integer.
> J. Allan Toogood, FORTRAN programmer
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment