I have developed a simple 3d J2ME application and published in Nokia store. I have tested the application on my mobile (Nokia C7) and on several others using the RDA. The application generally works fine with a few issues with some models. However I installed the version available from Nokia store and there is file reading functionality that does not work.
One of the options in the application, the user can choose to browse for a file within the phone memory. I implemented this using the FileBrowser component in Netbeans. Additionally I added in the .jad file, API requested permissions javax.microedition.io.Connector.file.read. When I install the application by transferring the file to the phone and run it (unsigned), the app will ask for permission to access that on the phone and I can browse the files. When I install through the store, it gives me a error message after I try to access any of the "drives" saying "You are not authorized to access the restricted API". This error message is within the code of FileBrowser component. It appears that is the the code
Maybe I have to add the permission request javax.microedition.io.Connector.file.write to the jad file. Is this correct? Or there is another solution?Code:currDir = (FileConnection) Connector.open("file:///" + currDirName); e = currDir.list();
I was wondering if I could have some guidance on how to solve this problem.