If you insist of using Calendar, try the following:
Calendar c = Calendar.getInstance();
c.setTime(prevDate);
c.add(Calendar.HOUR, -24);
But you also use milliseconds.
In that case maybe the following would be enough:
date.setTime(date.getTime() - 24 * 60 * 60 * 1000);
the best way to do it, would be to use JodaTime:
DateTimeFormat format = DateTimeFormat.forPattern("yyyy-MM-dd 00:00:00.000000000");
DateTime now = new DateTime();
System.out.println("Previous :" + format.print(now);
DateTime oneDayAgo = now.minusDays(1);
System.out.println("Updated :" + format.print(oneDayAgo);
I would use JodaTime, especially if you have more date/time operations in your app.