Reputation: 171
I have problem modifying my alarm application's notification, i want to change the time that shown by notification by using these code :
.......
Calendar cal = Calendar.getInstance();
cal.add(Calendar.MINUTE, addMinute);
notification.when = cal.getTimeInMillis();
notificationManager.notify(NOTIF_ID, notification);
But the problem is the notification time is not in the right format it show mm/dd/yy, instead of hh:mm , is it possible to change the format? i cant find apropriate method to change them.
i did search but i cant find any way to do that. any suggestion how to format the time in notification?
Thanks
Upvotes: 0
Views: 425
Reputation: 171
I have solved it. I couldn't figure out how to delete or format the time on standard notification, but I can create custom notification using NotificationBuilder, and passed formatted string time to the custom notification instead of Time.
Upvotes: 1