public static int getFirstDayOfWeek ( Context context ) { int startDay = Calendar . getInstance ( ) . getFirstDayOfWeek ( ) ; if ( startDay == Calendar . SATURDAY ) { return Time . SATURDAY ; } else if ( startDay == Calendar . MONDAY ) { return Time . MONDAY ; } else { return Time . SUNDAY ; } }
Get first day of week as android . text . format . Time constant .