title: Writing to database within a Service
body: <p>In my Android app, the user can receive notifications than contain a serial number that I want to store in my SQLite database. However, I saw that it may be unsafe to write in the database within the <code>Service</code>, as it can compete with others instances of it in the current <code>Activity</code>.</p>
  
  <p>Is it really unsafe to write in the database within a <code>Service</code>? Is there any workaround for that?</p>