¡@

Home 

2014/10/16 ¤W¤È 08:10:29

android Programming Glossary: bcontact

How to get contacts in order of their upcoming birthdays?

http://stackoverflow.com/questions/2482631/how-to-get-contacts-in-order-of-their-upcoming-birthdays

selection directly to Data table which stores birthday. private static final int UPCOMING_COUNT 10 public static List BContact upcomingBirthday Context ctx String today new SimpleDateFormat MM dd .format new Date List BContact firstPart upcomingBirthday.. static List BContact upcomingBirthday Context ctx String today new SimpleDateFormat MM dd .format new Date List BContact firstPart upcomingBirthday ctx today 12 31 UPCOMING_COUNT if firstPart.size UPCOMING_COUNT firstPart.addAll upcomingBirthday.. firstPart.addAll upcomingBirthday ctx 01 01 today UPCOMING_COUNT firstPart.size return firstPart public static List BContact upcomingBirthday Context ctx String fromDate String toDate int rows Uri dataUri ContactsContract.Data.CONTENT_URI String..