Software Archive
Read-only legacy content
17061 Discussions

how add intent filter to app in xdk panel

king_b_1
Beginner
513 Views

hi every one

how add intent filter code to my app?

<intent-filter> 
    <action android:name="android.intent.action.SEND" />
    <category android:name="android.intent.category.DEFAULT" />
    <data android:mimeType="text/plain" />
</intent-filter>

 

 

0 Kudos
4 Replies
PaulF_IntelCorp
Employee
513 Views

Instead of doing that, why don't you try using the "Create and Launch an Email" plugin in the featured list, or the SocialSharing plugin, also in the featured plugin list.

0 Kudos
Gary_H_2
New Contributor I
513 Views

I have had some success using the https://github.com/florentvaldelievre/virtualartifacts-webintent plugin to handle intents in my app.

You modify the virtualartifacts-webintent plugin.xml to set your intent filter and that gets inserted into your AndroidManifest.xml by the XDK when you build.You can then use the plugin method getExtra in your Device Ready function to get the URL of the file that is being shared with your app.

0 Kudos
king_b_1
Beginner
513 Views

very thanks

0 Kudos
yong_woo_p_
Beginner
513 Views

https://github.com/Alexandre-io/WebIntent/blob/19cf498d6731826df4534737be4b67a6251d1f00/plugin.xml

that is can solve that problem...

and intent is good working in intel-xdk cordova program..

 

<config-file target="AndroidManifest.xml" parent="/manifest/application/activity" mode="add">

<intent-filter>

.....

</intent-filter>

</config-file>

0 Kudos
Reply