calendar xml in android studio code example Example: android studio create calendar Calendar cal = Calendar.getInstance();