Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Mike_C_4
New Contributor I
48 Views

adding stuff to the manafest

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

 

 
Tags (2)
0 Kudos
4 Replies
Elroy_A_Intel
Employee
48 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.

0 Kudos
Mike_C_4
New Contributor I
48 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

 

0 Kudos
PaulF_IntelCorp
Employee
48 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.

0 Kudos
Mike_C_4
New Contributor I
48 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

0 Kudos