Skip to main content
Participant
November 9, 2011
Question

Android res folder not included in the ane extension

  • November 9, 2011
  • 1 reply
  • 1949 views

Hi.

I am trying to develop an android extension fro air, but I have a problem with resources.

According to this : http://help.adobe.com/en_US/air/extensions/WSf268776665d7970d-2e74ffb4130044f3619-7ff8.html

The res folder should be included inside the created extension. But it actually isn’t.

for this test I simply use the basic Hello world Vibrate test, but I added a new png in the drawable folder.

As you can see while unziping the .ane file, then going to META-INF/ANE/Android-ARM

the res file is absent.

As a result, the program crashes when I try to access my ressource FREContext.getResourceId("drawable.ppy_accessory_manage.png")

Has anyone managed to make resources work with ANE in android?

PS, here is my batch to compile the ANE :

set adt_directory=C:\Program Files\Adobe\Adobe Flash Builder 4.6\sdks\4.6.0\bin

set root_directory=C:\Users\hugo\Adobe Flash Builder 4.6

set library_directory=%root_directory%\HelloANELibrary

set native_directory=%root_directory%\HelloANENative

set signing_options= -storetype pkcs12 -keystore "C:\Users\hugo\Adobe Flash Builder 4.6\certificat.p12"

set dest_ANE=HelloANE.ane

set extension_XML=%library_directory%\src\extension.xml

set library_SWC=%library_directory%\bin\HelloANELibrary.swc

"%adt_directory%"/adt -package %signing_options% -target ane "%dest_ANE%" "%extension_XML%" -swc "%library_SWC%" -platform Android-ARM -C "%native_directory%" library.swf HelloANENative.jar

This topic has been closed for replies.

1 reply

Taiko963Author
Participant
November 14, 2011

Still no answers ?

Do I really to ask a Friend working at Adobe to have an answer to such simple question ?

Taiko963Author
Participant
November 14, 2011