So I'm getting really confused on how to do this whole thing and I was hoping someone could break it down for me a little bit.
I have a service that should always be running, and at certain times it needs to alert the user that a task is to be completed(probably through a notification bar icon). When the user accepts the task, the service needs to look into the local database, construct some non primitive objects, and give them to the activity that it just started.
I have looked all over and gotten very confused as to a proper approach so I have a few questions to help me wrap my head around it.
If an activity creates a local SQLite database can the service and activities of that application access that same database later?
Does the service and activity need to be in the same or separate packages? I would think no but for some reason I remember seeing something about this elsewhere.
How would I do the data transmission from the service to the activity? I was thinking a content provider but it seems like there should be an easier way for the service to just hand off the data. Similar to an Intent but for non primitives.
Thanks in advance.