I am developing an application, which i want to be started on phone swich on.
I have read little PushRegistry and was trying small program, that will schedule the MIDlet after some given time.
Following is the function:
private void scheduleMIDlet(long deltatime)
throws ClassNotFoundException, ConnectionNotFoundException, SecurityException
String classname = this.getClass().getName();
Date alarmDate = new Date();
long t = PushRegistry.registerAlarm(classname, alarmDate.getTime() + deltatime);
Which i have called on application exit. in destroyApp().
But i am getting the exception :
java.lang.securityexception: permission = javax.microedition.pushregistry ?
Thanks in advance.