Skip to main content
Participating Frequently
October 12, 2017
Question

Is it possible to include raw assets into air native extension?

  • October 12, 2017
  • 1 reply
  • 749 views

I know different ways to add raw assets (which are placed in assets folder, not res folder) to your AIR application (one for Flash Pro and Adobe Animate, second for Flash Builder and so on).

But I'm interested, is there any way to include raw assets into ane plugin? Again, I know about accessing native resources with R.* mechanism, but it isn't that I looking for.

I found similar question without answer:

How to include android assets(not res) folder in a native extension?


Also, I found a plugin with required functionality:

https://dev.tapjoy.com/sdk-integration/air/getting-started-guide-publishers-adobe-air/

There are raw assets in this plugins (they are in META-INF/ANE/Android-ARM/bin/android/assets). I tried to place my assets in the same folder, but no luck. Any ideas? I really need your help.

This topic has been closed for replies.

1 reply

TapockeckAuthor
Participating Frequently
December 29, 2017

Anyone?

Participant
January 18, 2019

I don't know "the right way" to do it but you can include any file with `-C` option of `adt`. Unfortunately these are no automatically included in APK when you build final project that uses ANE. So you would have to unpack these files from ANE and then again use `-C` to include them when building final APK. But there is a caveat. As resources associated with packages and could be put in separate folders they are somewhat safe from conflicts. But that is not the case with raw assets. So if multiple ANEs will have assets of the same name then you are in trouble.