×

Discussion Board

Results 1 to 4 of 4

Thread: RES Folder

  1. #1
    Regular Contributor
    Join Date
    Nov 2010
    Posts
    118

    RES Folder

    hi im using Netbeans 6.9.1 IDE for my java ME project. i want to know where can i find the "Res folder". i want my MIDlet to read the text file from my own created folder. how can i do it? please help me...thanks

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: RES Folder

    Quote Originally Posted by binsint View Post
    hi im using Netbeans 6.9.1 IDE for my java ME project. i want to know where can i find the "Res folder". i want my MIDlet to read the text file from my own created folder. how can i do it? please help me...thanks
    You need to create the same folder or with any custom name and then put the stuff inside it. After that you need to add the folder in the IDE, by following the steps below,

    1. Right Click the project and move to properties,
    2.Find the Library and resources in the list at the left side, select that,
    3. Click on the add folder and then add the folder you created, press OK.

    Then inside your code you can read the data, images and etc,

    let us know in case of any concerns,
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Regular Contributor
    Join Date
    Nov 2010
    Posts
    118

    Re: RES Folder

    yeah! i successfully added it to the resources...thank you.my problem now is how can I access the file inside? I need JSR75 codes for opening the file inside my folder.i want to display the contents of the textfile to a form..can you give me source codes? I'm a J2ME beginner though but im gradually learning through this forum. hoping for your reply asap..anyway thank you so much
    Last edited by binsint; 2011-01-06 at 14:31.

  4. #4
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: RES Folder

    Quote Originally Posted by binsint View Post
    yeah! i successfully added it to the resources...thank you.my problem now is how can I access the file inside? I need JSR75 codes for opening the file inside my folder.i want to display the contents of the textfile to a form..can you give me source codes? I'm a J2ME beginner though but im gradually learning through this forum. hoping for your reply asap..anyway thank you so much
    If you are putting the file, any other resources inside the res folder, then you can not read the file using the File Connection API. Rather you have to read the resource as stream and the convert it into the string to draw over the container.

    These kind of the topics are very command and can be easily found on the wiki, here is the one you need to do refer

    On the other hand the JSR 75, File Connection API is used to deal with the file which are there inside the file system of the device.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. [eSWT] How to get files from res folder in Browser?
    By nwoedf in forum Mobile Java Networking & Messaging & Security
    Replies: 6
    Last Post: 2010-11-24, 14:38
  2. How to include /res folder in the package
    By burinutit in forum Mobile Java General
    Replies: 2
    Last Post: 2009-11-24, 09:03
  3. Drawing on image in res folder
    By jules_ in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2009-09-16, 08:49
  4. Change res folder content
    By Dyvanu in forum Mobile Java General
    Replies: 5
    Last Post: 2008-12-01, 12:31
  5. Help locating resources from res folder
    By imational in forum Mobile Java General
    Replies: 6
    Last Post: 2006-05-11, 04:01

Posting Permissions

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