Hi everybody. I try to get my app working on a 6230i I read about a MIDlet policy file at a Sun Forum. What is this about. Do I need this kind of files? What is this file for?
Hi everybody. I try to get my app working on a 6230i I read about a MIDlet policy file at a Sun Forum. What is this about. Do I need this kind of files? What is this file for?
Hi,
>>>>Midlet policy file
R u referring to the security policy file.
This not a necessity in all cases . It will be only required if u r signing ur application or u r using specific apis eg; fileconnection, camera, httpconnection......ie; apis that require permissions while trying to access them
Wang
I added the permisions concering FileConnection to the jad file. I also signed the app but it didn't solved the problem.
Hi,
Can u specify what ur problem is?? are u able to install the application?? or whether the application crashes while accessing filesystem
Please have a look at the following thread.
this might be useful
http://discussion.forum.nokia.com/fo...ad.php?t=74986
Wang
The Handset show an error message which says Security Java/lang/Security Exception access denied. This message is shown when the app tries to access the filesystem on a mmc.
Hi
While acessing the file system the phone will ask for permission if you havent sined the Midlet.Your security permissions are not set properly.
Thanks
Soku
Hi Ipinguin,
R u using the phone provided by ur operator??
is the exception thrown only while accessing the mmc or whether it is thrown while accessing the filesystem?
even if u have signed the application, u have to manually set the fileaccess settings to "Always Allowed"
Plz try signing provided here
http://www.spindriftpages.net/pebble...275880301.html
Wang
I tried to access the mmc with System.getProoerty("fileconn.dir.memorycard");
How do I set the fileaccess can you provide an example? I haven't found documentation on this yet.
THX
Hi lpinguin,
Check this doc below plus the tutorial provided by Wang.
MIDP 2.0: Tutorial On Signed MIDlets v1.1
http://www.forum.nokia.com/info/sw.n..._1_en.pdf.html
BR,
Juarez Junior
lpinguin, after signing your MIDlet and transfering the JAD and the JAR, were you still able to install it? Is this a real device or the Nokia Series 40 2.0 Platform SDK of the Nokia 6230i? Have you played with Nokia > Menu > Applications > Collection > Select application > your MIDlet > Options > Application access > Phone access > Read user data
and made sure the permission is set correctly?
Additionally, do not get confused on the link which was given by wang_shui, a Nokia Series 40 does not support self-signed certificates. However, it shows the path how to sign at all.
traud, you made my day! After 5 months of testing my app finally works on my handset. Thank you very much !