Using the singleton pattern Android

No comments

We have three services writing to the SQLite in the NOxDROID android app. 

  1. NOxDroidIOIOThread
  2. Location tracking
  3. NOxDroidService
We let them share a singleton databaseadapter to avoid any concurrency problems with regard to database access. It is implemented so the application class has a method which returns the shared databaseadapter. 
For a more comprehensive example with code see this blogpost at 

Written by andreas

Thursday 01 December 2011 at 12:30 pm

Posted in Default, noxdroid, Linkdump

No comments

Leave a Reply

(optional field)
(optional field)
To prevent spam we require you to answer this silly question

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.