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
Post a Comment