I use J2ME Google Maps API to write coordinates of a location and see it on a image file. Unfortunately, I got this error when I compile my application:
java.lang.SecurityException: Application not authorized to access the restricted API
at com.sun.midp.security.SecurityToken.checkIfPermissionAllowed(SecurityToken.java:170)
at com.sun.midp.security.SecurityToken.checkIfPermissionAllowed(SecurityToken.java:145)
at com.sun.midp.midletsuite.MIDletSuiteImpl.checkIfPermissionAllowed(MIDletSuiteImpl.java:281)
at com.sun.midp.midlet.MIDletState.<init>(+83)
at javax.microedition.midlet.MIDletProxy.<init>(MIDletProxy.java:33)
at javax.microedition.midlet.MIDlet.<init>(MIDlet.java:70)
at GoogleMaps.<init>(GoogleMaps.java:53)
at GoogleMaps.getForm(GoogleMaps.java:297)
at GoogleMaps.startMIDlet(GoogleMaps.java:251)
at GoogleMaps.startApp(GoogleMaps.java:352)
When I check my password that I took from Gmail and try it on an HTML i can see the image. But it does not work when I wrote the password in the code. What should I do to breach the security? Thank you in advance.

Reply With Quote

