I'm coding an SMS application in J2ME and on the server side of the application the line below throws the exception:
java.lang.SecurityException: Application not authorized to access the restricted API
This is the offending line of code:
sender = Sender.getSInstance();
Read this:Understanding MIDP 2.0's Security Architecture. It might help you. Also read this post.