-
1. Re: How to use R.resource in Java from ANE?
HungryCatMari Mar 14, 2013 12:26 AM (in response to HungryCatMari)I have realized one thing,
after unzip .jar,it contains res-folder,
but after unzip .ane it doesn't contains res-folder.
I guess,It means adt command fails to include res folder.
my command:
adt -package -target ane ANExxx.ane ane.xml -swc ANExxx.swc -platform Android-ARM library.swf res Nativexxx.jar -platform default library.swf Nativexxx.jar
-
2. Re: How to use R.resource in Java from ANE?
HungryCatMari Mar 14, 2013 1:05 AM (in response to HungryCatMari)It was actually a bug of air 3.5.
-
3. Re: How to use R.resource in Java from ANE?
Kevin Sherrill Apr 8, 2013 10:35 AM (in response to HungryCatMari)I don't think its a bug with AIR 3.5. I'm using FB 4.7 and the latest Eclipse for the native side and AIR 3.6 overlaid onto Apache Flex 4.9.1. I've created my .ane and my test app runs fine until I request a native side resource. I've unpacked the .ane and it all looks good - my resources are there. I'm making correct calls through context.getResourceId().
Turns out I wasn't stepping back far enough. I next unpacked my apk, and low and behold, when FB packages it up it strips apart the .ane, throws away its resources, and bundles in new ones.
Next step is to find out why. Going to see if Flash Pro CS6 builds bad apk's as well. If so, I suppose I'll try and find docs on adt and aapt and see if I can build batch files to build the apk's myself. Also need to clean my path of any adobe folders, and add the ones I need in the batch files to insure I'm not accessing stuff from an older SDK somewhere. And I'll also check against other SDK's - perhaps my overlay isn't working out like I'd first thought.

