What is singleton class in Android?

What is singleton class in Android?
Answer
A singleton is a design pattern that restricts the instantiation of a class to only one instance. Notable uses include controlling concurrency and creating a central point of access for an application to access its data store. This example demonstrate about How to use singleton class in android.
 

Tìm kiếm

Back
Top