ASALAM O ALAIKUM
i am trying to email an image from sdcard in android emulator.there is nothing wrong with the path and as well is with the email client(i have Gmail client).and the image size is not more then 3kb,but it still gives an error that is File size too large to attach.below is the code any help or idea ? thanks selectedImagePath= getPath(selectedImageUri); Intent i = new Intent(Intent.ACTION_SEND); //i.putExtra(Intent.EXTRA_EMAIL , "yes u are right"); i.putExtra(Intent.EXTRA_SUBJECT, "yes u are right"); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); //i.putExtra(Intent.EXTRA_STREAM , baos.toByteArray()); i.putExtra(Intent.EXTRA_STREAM , Uri.parse(selectedImagePath)); i.setType("image/jpeg"); try { startActivity(Intent.createChooser(i, "Send mail...")); } catch (android.content.ActivityNotFoundException ex) { Toast.makeText(MyPhoto.this, "There are no email clients installed.", Toast.LENGTH_SHORT).show(); } -- 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