Android App Widget -


i wanna ask regarding android widget. i'm done creating app widget application , asking if android widget has way of delaying right after clicking/tapping button. after clicking or tapping button if there notice appear if has been tapped wait 10 seconds. reply in advance.

you can store when next valid click in member variable

// create static store valid click time private static long nextvalidtime = new date().gettime();      // ... snip ...      // inside onclick listener     if (nextvalidtime >= date().gettime()) {         nextvalidtime = new date().gettime() + 10;         // dosomething     } else {         // show dialogue click        } 

Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -