0

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();
Cœur
  • 37,241
  • 25
  • 195
  • 267
Andre
  • 33
  • 1
  • 6
  • emulator. Here is the getSInstance method: public static Sender getSInstance() { if(instance == null)instance = new Sender(); return instance; } – Andre Apr 18 '11 at 05:10

1 Answers1

2

Read this:Understanding MIDP 2.0's Security Architecture. It might help you. Also read this post.

Harry Joy
  • 58,650
  • 30
  • 162
  • 207