Android Question [Solved] Question on usage of SQL in a Service

opus

Active Member
Licensed User
Longtime User
I'm using a SQL-Database.
The SQL object is created once in the main process.
I'm also using a service that is called every x-minutes to download data (working) and save this data into the database.
So far I'm using the SQL-object created in the main process inside the service, is that a god practice? Shouldn't I create a totally seperated SQL-object for the service? The service shall (and does) run even if the main process is in the background.

Thanks for the help.

..and sorry for the "newby question", my database "knowledge" is only 2 weeks old!
 
Top