×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    38

    Question How to include /res folder in the package

    Hello,

    I'm using Eclipse Pulsa to develop an application on the Nokia mobile N95.
    I would like to use some images in the application, I put the images in /res/images/myphoto.PNG
    In my Application Descriptor, I have:
    MIDlet-1: MyDemo, /res/images/myphoto.PNG, main.MyDemo
    In the Build tab, I already selected both src and res folders.

    But when I create the package for my application, I check in my .jar file but there's no /res folder inside, there are only the subfolder in the src folder.

    Could you please tell me how could I include correctly the res folder in my .jar file?

    Thank you very much.

  2. #2
    Regular Contributor
    Join Date
    Jun 2009
    Location
    Tel-Aviv Israel
    Posts
    410

    Re: How to include /res folder in the package

    it is included already you just have to ref the folder with a string as such
    the folder is: /res/blah/blah.png
    then the string in the code is: /blah/blah.png
    this should do it.
    btw there is no res folder in the package but packing copies the folders that are in the resources folder into the package, thous if you create a package (blah) with the same name of the resources folder (/Blah) you would get compilation error about it.
    Thanks,
    Adam Zehavi.

  3. #3
    Registered User
    Join Date
    Sep 2009
    Posts
    38

    Re: How to include /res folder in the package

    Thanks, Adam, for your explaination.
    I can get to my image files now.

    Have a nice day!

Similar Threads

  1. Replies: 2
    Last Post: 2009-09-07, 23:13
  2. Replies: 4
    Last Post: 2009-08-31, 07:26
  3. [moved] Is there an easy way to package a whole folder into SIS ?
    By nadis in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 4
    Last Post: 2009-07-10, 16:40
  4. Replies: 22
    Last Post: 2009-07-01, 13:44
  5. OfferKeyEventL problem
    By rajesh1410 in forum Symbian
    Replies: 1
    Last Post: 2007-01-09, 09:17

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×