public static String getWeek() {
String[] weekDays = {"星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"};
Calendar mCalendar = Calendar.getInstance();
mCalendar.setTime(new Date());
int day = mCalendar.get(Calendar.DAY_OF_WEEK) - 1;
if (day < 0)
day = 0;
return weekDays[day];
}
直接调用即可