I've had success getting the emulator to work with the following code:
I am having problems now however getting this code to run on an actual phone. I am trying to get this code to run as a vAppli app on the Vodafone 903T handset, but I am getting the following exception:
java.lang.SecurityException: Location APIs can be accessed only if Security Domain is Operator Domain.
Is there anything I can do to change the Security Domain? Is there any way I can ask the user for permission to allow the app to access the API?
Any help would be appreciated. Thanks.