java.lang.SecurityException javax.microedition.location.Location
Hi
I just signed my application with thawte. I run my program to trigger the GPS device, it warns me with an exception message java.lang.SecurityException: Permission = javax.microedition.location.Location.
Previously, the program was working when I didn't sign it
Please anyone tell me what is happening
Re: java.lang.SecurityException javax.microedition.location.Location
Which phone are you using? Is it a branded phone for an operator?
What permissions are you requesting in the JAD file?
Re: java.lang.SecurityException javax.microedition.location.Location
[QUOTE=honest_success;483954]Which phone are you using? Is it a branded phone for an operator?
What permissions are you requesting in the JAD file?[/QUOTE]
I am using Nokia N95 8GB
It is not a branded phone
I don't understand what are permissions for JAD file, is it set from API permissions tab of Netbean from Properties ?
Re: java.lang.SecurityException javax.microedition.location.Location
Hi,
Yeah you are right..from this tag you can add all the permissions.
Thanks
Re: java.lang.SecurityException javax.microedition.location.Location
I tried to add the API javax.microedition.location.Location and tick as required column. when I run the application, it works fine but it asks me for permission of using GPS device. I already sign my code how come it still asks me
Re: java.lang.SecurityException javax.microedition.location.Location
You will now need to goto App.Manager on your N95. scroll to your application, select open. This will show you all security permissions available. Since your application is now signed you can now choose Always allowed option for Location.
For more on Java Signed please read this document
[url]http://www.forum.nokia.com/info/sw.nokia.com/id/3f8c9f9e-e940-4327-8548-49ed023bfe88/MIDP_2_0_Signed_MIDlet_Developers_Guide_v2_0_en.pdf.html[/url]
or refer to Forum Nokia JavaME Developers Library.
Re: java.lang.SecurityException javax.microedition.location.Location
Hi,
Yeah thats the way after doing it, application will never ask..
Thanks.
Re: java.lang.SecurityException javax.microedition.location.Location
Thanks all!!!. It works for me already