Hello!
I´m using the javax.microedition.location API to get GPS-positions. I want my application to get a new position each second. The problem is that each time the application tries to get a position I get a prompt asking if I want to give the program permission to get locations. I would want to be asked about this only once (or not at all).
I have tried to instanciate all objects in the classes constructor, so this is done only once, but it seems that it is the methods that needs the permission and not the creation of the objects.
I have also added the line:
MIDlet-Permissions: javax.microedition.location.Location to both the .jad- and manifest-files and then signed the midlet using Sun Java Wireless Toolkit without any result.
Is there a way to accomplish this? Any help would be greatly appreciated!
/Oskar

Reply With Quote


