Using Android Preferences in a background service

In this post I will explain how I have used the Android Preferences in a background service. The preference is used as an interval for updating a listview with some simple text items.