How can a Singleton Pattern Synchronize your UI with your Data

  • Replies:0
  • Forum posts: 1

Apr 13, 2017, 7:02:04 PM via Website


I have started studying android this year in university.

Our lecturer has asked us to show how we can use design patterns to help synchronize our applications.

In particular, he has asked us how to use the Observer and Singleton patterns to keep our UI's synchronized with our data.

I think I have found how the Observer can be used, but I can't find any examples of how the Singleton can be used to accomplish this.

Can you guys please help me to find the answer?

Thanks in advance for any help,