Help with getting the date of the Android device. There is this code here, I want it to load a certain .xml file (markup) after receiving the date. I know that you need to use the if statement, how to attach it correctly here? Android Studio
private String getDate() { SimpleDateFormat dateFormat = new SimpleDateFormat("dd.MM.yyyy hh:mm"); return dateFormat.format(new Date()); }