Hi, I got the answer at another group in few hours ago. Calendar class is designed on factory pattern...
On 4月11日, 下午11時20分, Ack <idle...@gmail.com> wrote: > coz call getInstance() static method is the only way to get calendar's > instance. > > but the constructor of Calendar is not "private", so we can create > 2+ calendar instances?? > > It's seems not singleton pattern. > > ref:http://developer.android.com/reference/java/util/Calendar.html -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en