1. Check out our companion app, Forums for Android! Download from Google Play

Support Reading default email client attachment files in android 2.1

Discussion in 'Android Devices' started by ramyavaidya, Dec 7, 2010.

  1. ramyavaidya

    ramyavaidya New Member
    Thread Starter

    Sep 22, 2010

    I configured email account in android2.1 emulator and download the .docx files from mail attachment I get the path content://com.android.email.attachmentprovider/1/1/RAW

    I am invoking the "open" file in email client from my app.

    if look into the eclipse file explorer files are stored at path /data/data/com.android.email/databases/1.db_att/1

    I tried to read using openInputStream() on ContentResolver , its reading binary data.

    how to get the file name of the attachment and and how to access the files both in device and emulator in readable format ?

    I have set the permission in manifest as
    <uses-permission android:name="com.android.email.permission.ACCESS_PROVIDER" ></uses-permission>
    <uses-permission android:name="com.android.email.permission.READ_ATTACHMENT"></uses-permission>

    Thank you.



Share This Page