It\'s sad how hard it is to find a simple line of code that does this \"In my opinion\".
Anyhow, the problem is I have a program with activities and services \
Just do it in the same way you did it for your activity. The only thing that you need to instantiate TheDB is a context; Activity is a Context as well as Service.
TheDB
Activity
Context
Service