Can someone tell me how can a midlet detect whether the phone is in use or not? To make it clear I am making use of PushRegistry.registerAlarm to invoke an application. But if the phone is busy such as user busy talking to someone, playing game, sending sms, or accessing gprs.

I know that the priority of this will be higher than the midlet and so the midlet will automatically not be invoked. If this can be detected then I want it should make 3 attempts of invoking the midlet.

Any help or suggestion would be greatly appreciated.