Go Back   Android Forums > Android Phones > Samsung Galaxy S

test: Reply
 
LinkBack Thread Tools
Old December 7th, 2010, 03:17 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Sep 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Reading default email client attachment files in android 2.1

Hi,

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_AT TACHMENT"></uses-permission>

Thank you.





Advertisements
ramyavaidya is offline  
Reply With Quote
sponsored links
Reply

Samsung Galaxy S
Current Rating:
Rate this Phone:

The Samsung Galaxy S was announced in March of 2010 was a high-end feature packed phone during its day. This was the start of Samsung's global takeover and although this particular phone saw many iterations and variants here in the state and ov... Read More



Go Back   Android Forums > Android Phones > Samsung Galaxy S
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:55 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.