android - How to switch between buttons after a specific time interval? -
i creating android app(am beginner) in phone dialer screen, buttons have highlighted 1 one after given time interval sequentially.i using android studio.
thanks in advance.:)
a suggestion either using handler or timer:
new android.os.handler().postdelayed( new runnable() { public void run() { // paint button x } }, 5000);
or using
new timer().scheduleatfixedrate(new timertask(){ @override public void run(){ // paint button x } }, 0, 5000);
Comments
Post a Comment