How to put timer in AlertDialog.Builder in android&? -


I created an alert dialog and I should have any type of timer installed. The timer should show 90 seconds to 0 seconds time

Do anyone know that text weights ("90 seconds for the acceptable seconds ...") know the way to change every moment with different text? ("90 seconds for acceptance ..." -> "Acceptable to 89 seasons ..." -> etc.)

Is it work for you Does it? New countdown update (Videvive) Vivib Id (RIDACP_text), 90, new countdown update callback () {@ Override Public Watch on Containment Complaint (Text View Text View) { Toast.GetApplicationContext (), "Boom!", Toast.LNGTH_LONG) Show ();}}); * / Private Static Class countdown update run {personal callback mCallback; Private industries mfm; Private text view mView; Public countdown update (textview view, at se, callback callback) {mCallback = callback; MFrom = to; MView = View; MView.post (this); } @ Override Public Wide Run () {mView.setText (mFrom + "seconds for acceptance ..."); If (mFrom-- == 0) {if (mCallback! = Null) {mCallback.onCountDownComplete (mView); }} And {mView.postDelayed (this, 1000); }} Public stable interface callback {public record quoted (textview text view); }}


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -