Intent filter for CSV

Moderator: Support

kevinmcisaac
Posts: 37
Joined: Mon Oct 05, 2020 8:27 am

Intent filter for CSV

Post by kevinmcisaac »

I want to register my android app to view a file when a user tries to open it.

According to this
https://stackoverflow.com/questions/320 ... in-the-dow
I need to add an intent-filter, where do I do this in appery? Any documentation on this.

<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:host="" />
<data android:scheme="content" />
<data android:mimeType="text/
"/>
</intent-filter>

Serhii Kulibaba
Posts: 147
Joined: Tue Aug 27, 2013 1:47 pm

Re: Intent filter for CSV

Post by Serhii Kulibaba »

Hello Kevin,

We don't have such a function by default. Please search online for an appropriate solution. E.g.: https://stackoverflow.com/questions/281 ... config-xml

kevinmcisaac
Posts: 37
Joined: Mon Oct 05, 2020 8:27 am

Re: Intent filter for CSV

Post by kevinmcisaac »

Serhii,
thank you for the advice. I'm assuming I need to add the proposed code for the intent-filter to the AndroidManifest.xml, is that correct?

I'm new to Appery, where in the product can I do that.

Serhii Kulibaba
Posts: 147
Joined: Tue Aug 27, 2013 1:47 pm

Re: Intent filter for CSV

Post by Serhii Kulibaba »

You can add these changes to the file Cordova/config.xml

Please pay attention to this is something outside the scope (https://docs.appery.io/docs/general-support-policy) of our standard support. So we can't guarantee you the correct work of the app after these changes. Anyway you will be able to undo all of them

Post Reply