I need to make application that will catch EVERY SINGLE SMS that phone receives, and forward that SMS to email adress. So, i’m wondering how to perform that – should I make that as service or as application? User should open the application only once, and forget that it’s running on his phone.
I really don’t know how to manage this because I’m not experienced Java programmer,
If i make that as Service I assume that it would need to be running always, so it could ‘listen’ for incoming SMS’s. (it doesn’t help if it turns on periodically because than it’s possible to miss some messages while being turned off). And i’m not sure if that’s even possible?
If i make that as Application, could I achieve that effect through this way:
when default SMS application receives message, phone also notifies my app and so wake it up, and than my app cathes sms and do the job?
You will have to use a BroadcastReciever to get SMS and then to send as email you might have to write a Service. You can check here