Android Send Intent attaching photo from sdcard as 0 length file?

Should have done more searching here before posting problem sending an email with an attachment programmatically solved it for me. I only have file://sdcard/DumbDumpers/DumbDumper. Jpg which annoyingly still looks like I have successfully attached the image.

You need an extra to make it work: file:///sdcard/DumbDumpers/DumbDumper.jpg.

Should have done more searching here before posting; problem sending an email with an attachment programmatically solved it for me. I only have file://sdcard/DumbDumpers/DumbDumper. Jpg, which annoyingly still looks like I have successfully attached the image.

You need an extra / to make it work: file:///sdcard/DumbDumpers/DumbDumper.jpg.

Your intent type is wrong. It should be sendIntent. SetType("image/jpg").

Image/jpeg" is correct type for JPG – mice Sep 16 at 10:18.

The behaviour I am seeing is the Email intent handling the attachment of the jpeg from the sdcard but dealing with it as a 0 length file which is discarded when sent. I have tried setType as jpeg/image and image/jpeg as I have seen it expressed both ways. V/DumbDumpersMain( 3972): sPhotoUri=file://sdcard/DumbDumpers/DumbDumper.

Jpg I/ActivityManager( 56): Starting activity: Intent { action=android.intent.action. ChooserActivity} (has extras) } I/ActivityManager( 56): Starting activity: Intent { action=android.intent.action. SEND type=jpeg/image flags=0x3000000 comp={com.google.android.gm/com.google.android.gm.ComposeActivityGmail} (has extras) } I/ActivityManager( 56): Starting activity: Intent { action=android.intent.action.

SEND type=jpeg/image flags=0x2800000 comp={com.google.android.gm/com.google.android.gm.ComposeActivity} (has extras) } D/gmail-ls( 120): MailProvider. Query: content://gmail-ls/labels/[email protected](null, null) D/Gmail ( 2507): URI FOUND:file://sdcard/DumbDumpers/DumbDumper. I have been banging my head against this one for over a week now and still cannot determine what is wrong.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions