Skip to content Skip to sidebar Skip to footer

Downloading Attachment From G/email In Android

I want to download custom files from email to my app. I used intent filters below as suggested by Richard Legget. The app works fine in the Eclipse VM and downloads the file, but w

Solution 1:

GMail doesn't let you click URL's with unknown schemes, so you can use the schema that beginning with "http://". To define in manifest do something like this:

<intent-filter>
    <action android:name="android.intent.action.VIEW"/>
    <category android:name="android.intent.category.DEFAULT"/>
    <category android:name="android.intent.category.BROWSABLE"/>
    <data android:scheme="http" android:host="com.yourdomain.yourapp"/>
</intent-filter>

Post a Comment for "Downloading Attachment From G/email In Android"