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
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,
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.
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,