How to sign MIDlet so it wont confirm before read/write file operation ?
hi there,
i am developing application which reads mp3 files from the songs folder. but at each run of my application it ask the confirmation to Allow to read and write file to application.
how can i othorize or sign my MIDlet to overcome this problem ?
i m using Sony Z550i phone.
[305 byte] By [
ejatina] at [2007-11-26 15:40:29]

# 2
on some J2ME platforms you may have to sign the applet to set the option to Always Allow.
Under NetBeans all you have to do to sign the app is go to the Projects window, right click on the desired project, select Properties. A Project Properties window will pop-up. On the left hand side, near the bottom, select Signing. Select the check box labeled 'Sign Distribution'. By default there is a 'built-in keystore' that should work with many J2ME platforms but you can also generate your own keystores through the Security Manager.
If you wish to generate your own keys:
WARNING: may not work with all J2ME platforms if you are not able to authorize the key on the platform you wish to run it on.
Beside the 'Sign Distribution' checkbox there is a button labeled 'Open Security Manager'. There you click 'Add Keystore'. Fill in a password and it will create your keystore. Next, select the newly generated keystore and click the 'New' button to add keys to the keystore. Simply fill out the form and it will generate a key for you.
When you build using NetBeans it may ask you for the keystore and signing key passwords again, so make sure you use a password you will remember.