android - delaying a performClick -


Hello I am writing my first app and I want to make a click after a few seconds. I tried to use both the handler and the thread but it just does not seem to work.

Computer compute () {delay = new thread () {Public runs zero () { Try {thread.leep (250); OnePlayerActivity.this.runOnUiThread (new Runnabal) (run publicly with zero) (if (another amp; AIISNet ()) (if (amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; Isenated ()) {Six. ClickClickClick ();} and if (Duffitt and Dosix and Four. Eentensed ()) {four.performClick ();} and if (duffer & amp; amp; two; and & amp; Five (.)) {Five.performClick ();} // Method is a bit late ...}}); } Hold (exception e) {e.printStackTrace (); }}}; Delaying.start (); }

I used the same thread on another activity and it worked out is not something different I checked three I removed the thread and ran the app and click on display as soon as I want. So obviously I have done something wrong while using the thread.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -