¡@

Home 

2014/10/16 ¤W¤È 08:23:43

android Programming Glossary: settimer

how to trigger timer from other class and its TextView and implementation in another xml and class respectively?

http://stackoverflow.com/questions/18614963/how-to-trigger-timer-from-other-class-and-its-textview-and-implementation-in-ano

Answer currentGame.decrementScore return true public void setTimer long finishTime 5 CountDownTimer counterTimer new CountDownTimer.. As mentioned by Piyush Gupta you should call the setTimer method from onResume in your QuestionActivity . From the Android.. your code you should also make the counterTimer you use in setTimer a class member not a local variable if you don't it will go..

how to trigger timer from other class and its TextView and implementation in another xml and class respectively?

http://stackoverflow.com/questions/18614963/how-to-trigger-timer-from-other-class-and-its-textview-and-implementation-in-ano

currentGame.incrementScore else Log.d Questions Incorrect Answer currentGame.decrementScore return true public void setTimer long finishTime 5 CountDownTimer counterTimer new CountDownTimer finishTime 1000 1000 public void onFinish code to execute.. finish break java android xml timer share improve this question As mentioned by Piyush Gupta you should call the setTimer method from onResume in your QuestionActivity . From the Android Developer Documentation onResume is called for your activity.. open exclusive access devices such as the camera etc. In your code you should also make the counterTimer you use in setTimer a class member not a local variable if you don't it will go out of scope once the setTimer call completes and your access..