On Thu, Sep 22, 2011 at 7:59 PM, Petko Petkov <[email protected]> wrote:
> > My question is is there a nicer way to do this ? is there something > like design pattern for this ? What is the recommended way to do > this ? I am sure that many people have encounter this kind of problems Probably :) DateUtils[1] does something similar you might want to look at the implementation for hints. It really depends how sophisticated you need it to be: if it's just today/yesterday a few if's would suffice. [1] http://developer.android.com/reference/android/text/format/DateUtils.html#getRelativeDateTimeString(android.content.Context, long, long, long, int) -- 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

