Hi,
I am developing an app that will receive incoming SMS messages, store them in an SQLlite database, display certain parts of them and allow the user to do things with them, such as reply or print to a bluetooth printer.
Since the app may be started (or restarted) after some appropriate messages have already been received I can't just use SmsInterceptor, so I am using SmsMessages.GetAllSince to receive those (within an activity module). I'm now wondering whether it is best to continue using SmsMessages.GetAllSince with a timer either in the same activity module or start a service module and use SmsInterceptor. It's important that the app gets the messages almost as soon as they are received so either the timer or the interceptor would need to run every few seconds.
Any advice on which is the best approach?
Ta.
I am developing an app that will receive incoming SMS messages, store them in an SQLlite database, display certain parts of them and allow the user to do things with them, such as reply or print to a bluetooth printer.
Since the app may be started (or restarted) after some appropriate messages have already been received I can't just use SmsInterceptor, so I am using SmsMessages.GetAllSince to receive those (within an activity module). I'm now wondering whether it is best to continue using SmsMessages.GetAllSince with a timer either in the same activity module or start a service module and use SmsInterceptor. It's important that the app gets the messages almost as soon as they are received so either the timer or the interceptor would need to run every few seconds.
Any advice on which is the best approach?
Ta.