After Click Button Disable for 24 hour

(Wakil) #1

After Click Button Disable for 24 hours
when complete 24 hours button visible?
please help

Thank you

(Pavitra Golchha) #2

Use TinyDB to store the time of action and later check the stored time if it is >= stored time + 24 hours, then allow to call the action again.

(Wakil) #3

I am first time use makeroid builder i don,t know how i use tinydb

can you explane step by step

thank you

(Pavitra Golchha) #4

Here’s a good tutorial on how to use TinyDB:

and its docs: Storage - App Inventor for Android (This is currently not available in

(Wakil) #5

please explane step by step

thank you

(Ben) #6

Read the tutorial, it gives all the info you need to know

(KaFa) #7

I maked a little example with the minute.
I know it’s a little bit complicated, but I think it’s understandable. :sweat_smile:

DisableButton.aia (20,4 KB)
DisableButton.apk (2,3 MB)

How to add restriction on click button
(Wakil) #8

thank you sir

i make
click button to go next page and disable for 30sec button (time work background application)
after 30 complete enable button?

thank you

(KaFa) #9

You must change in the blocks editor the time pattern from HH:mm to mm:ss and the "1" to "30". And add your function to go to the next screen.

(Wakil) #10

i mean

when click button go to next screen and disable button. massage showing in label text please wait 1 minute to enable button for click to next screen?

please make a aie file

thank you

(KaFa) #11

Sorry I haven‘t the time for that, but you can also test something around.

It‘s better if you learn it yourself.

@Taifun has a lot of tutorials at

(Nosrej Chaokad) #12

Try this also i use this on my appstestuserblock (1).aia (5.7 KB)

1 h = 3600000 ms
6 h = 21600000 ms
24 h = 86400000 ms