Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6805279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:34:03+00:00 2026-05-26T19:34:03+00:00

Hi all I am trying to develop an android extension for air, but I

  • 0

Hi all

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

According to this : Official adobe doc – FREContext

and this Extending AIR by Oliver Goldman

We simply have to add the resources we need in the res file of the Native part, then they are added inside the .ane file and passed to the final apk. In order to access them though we have to use getResourceId( “drawable.background_image” ) instead of R.drawable.background_image

But when I generate my extension, the res file is actually not even included anywhere inside the .ane file and also not inside the final apk. And I have found not a single extension on the net using resources (not even in the adobe samples)

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 resource FREContext.getResourceId(“drawable.ppy_accessory_manage.png”)

Has anyone managed to make resources work with ANE in android? Is there something I should change in my command line while compiling the ane?

Thanks 🙂

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T19:34:04+00:00Added an answer on May 26, 2026 at 7:34 pm

    You just have to add after “-platform Android-ARM” the following: -C “%native_directory%” res

    With your res folder in %native_directory% !

    But the best way is to create a %target_native_directory%, put everything you need inside, and use:
    -C “%target_native_directory%” .

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I started trying to develop Android applications today, but I have a problem:
trying to develop web form using jquery. all i need is to have several
I'm trying to develop code for mpeg/h.264/RTP streaming. I'm quite new to all this
I'm trying to develop a Hybrid android app where all by logic to get
I am trying to develop android apps on a MAC Mini and have installed
I'm trying to develop Android apps via Java,Eclipse. I'm trying to use this example
I have just started android development 3 days ago and I'm trying to develop
I am trying to develop a Facebook application which shows me all the content
I have been trying all afternoon to get the jQuery Sifr Plugin ( http://jquery.thewikies.com/sifr/
I have been trying all day to get some data properly formatted in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.