Skip to main content
Legend
July 27, 2018
Question

Adding and accessing a file from Android /res/ - network_security_config.xml

  • July 27, 2018
  • 0 replies
  • 322 views

Hi,
For debug purposes, I want to be able to include a resource - network_security_config.xml - in the /res/ directory of the packaged APK.

EG: I want a reference to this stored XML that I can access using:

<application ...

     android:networkSecurityConfig="@xml/network_security_config"

     >

in my Android manifest.

However...

This doesn't seem to be possible!

The /res/ directory seems entirely controlled by AIR and even adding it as an asset in res/ of an ANE places it somewhere unexpected.

Is there a way to add and reference the network_security_config.xml file in my manifest?

Thanks,

Gaius

This topic has been closed for replies.