Android Question How to avoid creating a false Singleton class?

LucaMs

Expert
Licensed User
Longtime User
(I might even force myself a little, I know :rolleyes:)

I have developed a class, I will publish, but it goes used as a Singleton class, in the sense that there must be only one instance of it.

I should better study the module Scales by Klaus, although it needs initialization, it is a module!

Or should I create a library?

(Finally, I have not tested it in depth and probably the descriptions in English that I have used are are far from perfect).

Thanks
 

LucaMs

Expert
Licensed User
Longtime User
Thanks.

The first option is the one I used.

If I convert it to module, I'm afraid of having to check in every function if it has been initialized.

Ok, I publish it as it is, it may be helpful.
I gladly will accept any criticism and advice.
 
Upvote 0
Top