I want to get the current time according to current time zone even I change my current time zone from my phone and change my time but still, I should be able to get the current time and date. How to get that?
Time currentTime = new Time();
currentTime.setToNow();
Calendar cal = Calendar.getInstance();
TimeZone tz = cal.getTimeZone();
Date date = cal.getTime();
strDate = date.toString();