Best way to implement database service and activities in android?
I am basically creating one of those apps where you can set an automatic response to a specific SMS. It sounds simple but the issue here is that I am logging all received and sent messages to a database. I have one table for data/settings on the numbers the app should reply to. When a contact is added to this table, a new table is also created (for incoming and outgoing messages).

I need to have a BroadcastReceiver that starts an Intent and then the service is done.
The part where I'm stuck is that the user clicks on the app in order to change settings, add/remove contacts to the list, and view the logged messages, so I don't know what approach to take. Should I have 2 services, one that works on the SQLite database, and another that does the replying? can these two be connected?

Another question is, what do I need to do for the log view to be updated if the person is currently in the app looking at the log?

Also, I said "activities" in the title because the first screen in the app is the listview of all the activated contacts, then a new activity is created with another listview populated by the chosen contact's log.

What would be the best way to organize all of this? I'm not asking for code or anything but some diagrams or UML'ish type of drawings would help.

Thanks
Best way to implement database service and activities in android?
===

I am basically creating one of those apps where you can set an automatic response to a specific SMS. It sounds simple but the issue here is that I am logging all received and sent messages to a database. I have one table for data/settings on the numbers the app should reply to. When a contact is added to this table, a new table is also created (for incoming and outgoing messages).

I need to have a BroadcastReceiver that starts an Intent and then the service is done.
The part where I'm stuck is that the user clicks on the app in order to change settings, add/remove contacts to the list, and view the logged messages, so I don't know what approach to take. Should I have 2 services, one that works on the SQLite database, and another that does the replying? can these two be connected?

Another question is, what do I need to do for the log view to be updated if the person is currently in the app looking at the log?

Also, I said "activities" in the title because the first screen in the app is the listview of all the activated contacts, then a new activity is created with another listview populated by the chosen contact's log.

What would be the best way to organize all of this? I'm not asking for code or anything but some diagrams or UML'ish type of drawings would help.

Thanks