I'm having problems using the PhoneEvents object. I have an activity and a service module.
A1) When a button is pressed in the main activity - the service is started
S1) When the service starts, it initialize PhoneEvent to monitor sending SMS then calls "Do_Send" in main
A2) Do_Send send the sms (which the service should "capture")
S2) when the SmsSentStatus event fires, it updates some global vars and calls "smsfollow" in main
A3) smsfollow displays msgbox, stops the service and finish the activity.
As it happens, the SMS is sent, but SmsSentStatus seems not to be fired.
Attached is the project.
A1) When a button is pressed in the main activity - the service is started
S1) When the service starts, it initialize PhoneEvent to monitor sending SMS then calls "Do_Send" in main
A2) Do_Send send the sms (which the service should "capture")
S2) when the SmsSentStatus event fires, it updates some global vars and calls "smsfollow" in main
A3) smsfollow displays msgbox, stops the service and finish the activity.
As it happens, the SMS is sent, but SmsSentStatus seems not to be fired.
Attached is the project.