The Uri seems to be incorrect. "file://sdcard/myfile.zip"

You can directly specify a file uri like Uri.fromFile(new File("/
sdcard/myfile.zip"))

Regards,
Dexter.

On Sep 1, 11:35 am, SrilankanKK <[email protected]> wrote:
> Hi
>
> I have create a zip file on the phone sdk. So i need to create a
> program to attach that zip file and mail it. For that i need the uri
> of that file. I used its physical path but it doesn't work.
>
> path to the file - sdcard/myfile.zip
>
> i used it in the code in foloowing way
>
>  sendIntent.putExtra(Intent.EXTRA_STREAM,Uri.parse("file://sdcard/
> myfile.zip"));
>
> when email is sent no attachment can be seen.
> Is it a problem with a uri.
> is it a problem with the MIME type
>
> Thank in advance
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to