I already know how to disable the button by using this code:
b.setFocusable(false);
b.setEnable(false);
I want to disable the button once it is clicked for the day, then enable the button the next day in android. In other words, if the button is clicked once today, it will become disabled until tomorrow. Any ideas?
Copyright Notice:Content Author:「Smithy Johnsony」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/18084733/how-to-disable-button-after-it-is-clicked-once-in-a-day-and-reenable-the-button