[android-developers] Disabling a button until a set day

2010-11-22 Thread Garrett
Here is the scenario: User opens app, they press a button and some activity launches. After the button is pressed and the activity is executed, I want to disable the button until the week starts over. Even if they close the app and come back, it should still be disabled unless it has reset. For

Re: [android-developers] Disabling a button until a set day

2010-11-22 Thread Kumar Bibek
btn.setVisibility(View.GONE) or btn.setEnabled(false) You should save your time somewhere, preferences/files/database, and on start of your application, check this value and do as required... Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Sun, Nov 21, 2010 at 3:11 AM,