Monday, September 6, 2010

Journal Entries continued...

New forms ("intents") for health journal entries: Meals, Exercise, check it out...



Used Android date-picker, which isn't as nice as a calendar selection pop-up but will suffice...

Date conversion from Android (M-d-yyyy) to Keas (MM/dd/yyyy) was a minor but necessary chore:

SimpleDateFormat inputDate = new SimpleDateFormat("M-d-yyyy"); SimpleDateFormat putDate = new SimpleDateFormat("MM/dd/yyyy");
Date _date = null;
try {
_date = inputDate.parse(the_date);
} catch (ParseException e1) {
System.out.println("Error parsing date:"+the_date);
e1.printStackTrace();
_date = new Date();
}
the_date = putDate.format(_date); // PUT format


Download signed apk here (try test user name:jim pw:jim)
Download Eclipse project here.

Enjoy.

No comments:

Post a Comment