Why don't you write broadcast receiver class as inner-class rather than anonymous class?
I feel code wise ok may be just some debugging needed like check in adb whether the events are recieved or not.
Pramod P Deore wrote:Hello everybody, In my application I want to send sms, but the application must have to run in the background. It send the sms but it is not run in the background. I have following code.
My Service class look like this
But when I run it It is not running in the background.
Life is easy because we write the source code.....