Software Archive
Read-only legacy content
公告
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 讨论

how add intent filter to app in xdk panel

king_b_1
初学者
927 次查看

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 项奖励
4 回复数
PaulF_IntelCorp
927 次查看

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 项奖励
Gary_H_2
新分销商 I
927 次查看

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 项奖励
king_b_1
初学者
927 次查看

very thanks

0 项奖励
yong_woo_p_
初学者
927 次查看

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 项奖励
回复