I'm trying to write a fairly simple MIDP 2.0 app to run on my N95. I want it to listen for JSR-179 location events, then write some information about the locations to a file on the phone.
In the emulator, I have everything working fine. My app starts up, requests location permissions, requests read permissions, then requests write permissions, and off it goes. Everything behaves as I'd expect.
For the phone, I've used the sun WTK 2.5.1 to build the jar. In the project settings, I've ensured that the location, local read and local write are all set to required, and ensured that those correct permissions end up in the jad.
When I send over an un-signed jad + jar and install, it gives a security warning about untrused application, then installs fine. I run the midlet, it requests location, requests read, then throws a security exception. It never requests write permissions. I tried using a couple of different directories, but that didn't help. (On that subject, does anyone know where is the page that tells you where an un-signed jar can write to using JSR-75 on a s60 3rd ed phone? I can't find that info anywhere)
Next up, I generated a key+certificate pair. I send the certificate over to the phone, and installed it (picking both Internet and Online Cert Checking, which were the only two options). I then used this cert to sign my jar, un-installed the old jar, then sent over the jar+jad. When I installed it, it got 80% of the way through, then gave the un-helpful error "Certificate Error. Contact the Application Supplier".
Then, I imported my symbian signed developer certificate into the WTK keystore. With that, I signed the jar, and sent that+jar over to the phone. Again, it got 80% of the way through the install, and gave the same error. It also doesn't seem to matter if I install the jar, or the jad (with the jar in the same place), I get the same error.
The phone I'm using is N95, without any network branding or locking. It's on the latested v11 firmware, if that happens to make a difference.
Can anyone tell me how I can get my app to be able to write to somewhere on the phone via the JSR-75 calls, either un-signed, or with a certificate I generate myself? (I don't have a verisign code certificate, and as I'm not inclined to buy one just to run my own code on my own phone...)