Tag Archives: leap year

4,659 views

Leap year date time Java Android example

GregorianCalendar cal = new GregorianCalendar(); Boolean b = cal.isLeapYear(2012); // true, Android example. public class MainActivity extends Activity { TextView txtV; Context cntx;   @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); txtV = (TextView)findViewById(R.id.idLabel); cntx = this; StringBuilder strBuild … Continue reading

Posted in Android Examples Code | Tagged , , , , | Comments Off on Leap year date time Java Android example