Hi, I have the following code to pick an image from sd card:
private void pickPhotoAction() { Intent intent = new Intent(Intent.ACTION_GET_CONTENT, null); intent.setType("image/*"); intent.putExtra("crop", "true"); intent.putExtra("aspectX", 1); intent.putExtra("aspectY", 1); try { intent.putExtra("return-data", true); startActivityForResult(intent, PHOTO_PICKED); } catch (ActivityNotFoundException e) { } } It did launch an activity for me to pick an image from sd card. But my question is why the bitmap i get from the activity is limited to 188 x 188? Here is they code I have for getting the result: protected void onActivityResult(int requestCode, int resultCode, Intent data) { switch (requestCode) { case PHOTO_PICKED: { final Bundle extras = data.getExtras(); if (extras != null) { Bitmap photo = extras.getParcelable("data"); // why this is 188 x 188? System.out.println ("**** PHOTO_PICKED photo.getWidth():" + photo.getWidth() + " getHeight():" + photo.getHeight()); } .... } Thank you. --~--~---------~--~----~------------~-------~--~----~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---