integer - if/then conditional statements using ints -
super easy, sure - in conditional if/then statements using droid, how go using them integers, ie:
int currenthour = calendar.getinstance().get(calendar.hour_of_day); public void getresult(int currenthour, intent intent) { if (currenthour < 14) then: //do }
i know isn't right way it, having brain fart comparing ints...thanks!
public void getresult(int currenthour, intent intent) { if (currenthour < 14){ //do } else { //do else } }
Comments
Post a Comment