Kanika
Kanika

Reputation: 10708

Email attachment open in application?

I am not sure whether it is applicable or not in an Android?

I had received an email with an attached .CSV file...Now when I will click on that attachment then It could give me an option to open this attachment in xyz application..I want to implement this only on .csv attached file.

Please give me some hint that Is it possible ??

Thanks..

Upvotes: 1

Views: 2304

Answers (2)

akkilis
akkilis

Reputation: 1934

As the @Ken Fehling suggested, you must approach this way.
What actually gonna happen by this is, when you click on the attchment after its downloaded, Android OS will ask you and give a option containing all the apps that can open .csv file.
Now as you have mentioned the mime type or android:pathPattern in your app, the option list will contain the name of your app too.

Upvotes: 1

Ken Fehling
Ken Fehling

Reputation: 2111

If it's your app, I believe you just have to associate that file type with the app using the Android manifest. See this question for details:

Android intent filter: associate app with file extension

Upvotes: 2

Related Questions