I need to make a if
for when it is past midnight, but how can I get this information even with my cell phone turned off?
I'm currently trying this:
date_current = simpleDateFormat.parse(strDate);
if (date_current.getTime() == 0){
dados.setmeianoite(true);
}
But it is after midnight while the cell phone is in the background or it does not go down in if
, consequently it does not do what I want.
What I need to know is if it turns around midnight and it's not midnight.