> You should access it with a getInstance method which will initialize it if 
>> it is null.
>>
> You should initialize the variable in the class initialization and declare 
> it 'final'. 
>
> There are times when you cannot do this, in which case probably Singleton 
> is the wrong choice.
>
> For the rest of the times, Singleton probably is the wrong choice.
>


:-) +1 to that 

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to