×

Discussion Board

Results 1 to 5 of 5

Thread: LWUIT Resources

  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    16

    LWUIT Resources

    Hi all,
    Can anybody give me a guidance about how to create resources from LWUIT resource editor , where to save them and how to load them. I have tried it but i am getting null pointer exception . Please help me.

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: LWUIT Resources

    Look into the source code of LWUIT Demo project, and try the same way.

    You can copy an already created LWUIT demo res file and open it in the resource editor. modify it match your app need and use it in the same way as LWUIT Demo does.

    You can put a try/catch block and inside it read the resource like this
    Resources res = Resources.open(MIDlet.class.getResourceAsStream("/resourcefilename.res"));

    this resourcefile should be placed in the res folder of the project.

    thanks,
    ~Amitabh

  3. #3
    Registered User
    Join Date
    Mar 2010
    Posts
    16

    Re: LWUIT Resources

    hi,
    Thanks for your reply , I am using WirelessToolkit 3.0 ,i have created project in that , but it is not generating the res folder , so where shouls i put the resource file. Please help me.

  4. #4
    Registered User
    Join Date
    Mar 2010
    Posts
    16

    Red face Re: LWUIT Resources

    Please any one help me.

  5. #5
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: LWUIT Resources

    Create a res folder at the same place as src folder.

    thanks,
    ~Amitabh

Similar Threads

  1. Replies: 2
    Last Post: 2010-06-23, 13:50
  2. Replies: 0
    Last Post: 2010-04-20, 12:25
  3. LCDUI Alert on an LWUIT Form
    By slugger_2003 in forum Mobile Java General
    Replies: 0
    Last Post: 2010-04-18, 13:01
  4. Replies: 3
    Last Post: 2010-04-10, 19:10
  5. lwuit and j2me
    By Arunesh in forum Mobile Java General
    Replies: 16
    Last Post: 2009-09-12, 15:49

Posting Permissions

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