Add 1 hour to current time in android
try as:
SimpleDateFormat sdf = new SimpleDateFormat("yyyy:MM:dd:HH:mm");
String currentDateandTime = sdf.format(new Date());
Date date = sdf.parse(currentDateandTime);
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
calendar.add(Calendar.HOUR, 1);
System.out.println("Time here "+calendar.getTime());
Calendar now = Calendar.getInstance();
now.add(Calendar.HOUR,1);
System.out.println(now.getTime());
You can increment date like this before passing it to sdf.format(date)
Date a=new Date();
a.setTime(System.currentTimeMillis()+(60*60*1000));