Closed giwrgos88 closed 9 years ago
This library should be linked to the Android component lifecycle you are going to use, usually you should initialize SmsRadar when your application object starts, to know when one sms has been sent or received. If you don't start your service you are not going to be notified about incoming or outgoing sms.
yes i know that, but the service is only working when the application is open, if you close the application the service doesn't work any more so any message that i have sent or received doesn't show it them
That's not implemented in SMS Radar because library clients can use this library without keep the application started even if the user kills the app. If you want to do that you'll have to implement that functionality yourself, you can use a service or intent service and start SmsRadar from that service.
or i can use the BroadcastReceiver to start the smsradar on the receive, is that right?
If you do that, you are going to start sms radar just once your receiver be notified. I don't know what do you have to implement, but that could work :)
How i can start the service every time a message has been send from the default sms app?
Thank you