Software Archive
Read-only legacy content
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
17065 Discussions

adding stuff to the manafest

Mike_C_4
New Contributor I
114 Views

Hi ,

I need to add the below lines to my Android manifest. do I simply add these lines to the 
intel.config.additions.xml file? like so (lines in bold)

 

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

 

the Android section of the intel.config.additions.xml

<platform name="android">
    <!-- below requires the splash screen plugin -->
    <!-- docs: https://github.com/apache/cordova-plugin-splashscreen -->

  <preference name="SplashMaintainAspectRatio" value="false" />

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

</platform>

Thanks

 

 
0 Kudos
4 Replies
Elroy_A_Intel
Employee
114 Views

You can find the information you need for updating the Android manifest file here at  https://software.intel.com/en-us/xdk/faqs/general#android-manifest.

Mike_C_4
New Contributor I
114 Views

Elroy,

So based on that link, I have to created a dummy plugin? So the intelxdk.config.additions.xml is no longer being used?

Or is it the the intelxdk.config.additions.xml will not work for what I need to do?

 

Mike

 

PaulF_IntelCorp
Employee
114 Views

The intelxdk.config.additions.xml file is still used, it simply cannot handle what you are trying to do. The additions file is roughly equivalent to the standard Cordova CLI config.xml file, which is used to configure options in the Cordova build. Plugins allow you to do things that are extend the runtime environment and go deeper into the build process than the config.xml file can.

Mike_C_4
New Contributor I
114 Views

Understood,

I found how to do it here in case anyone is looking to add a intent-filter to the manifest for a plugin.

In short I added it to the plugin's XML file.

Mike

Reply