I'm currently doing my project and would like to add a timer for my android Sudoku game. I need to know the source code and how to put the source code into my Sudoku game. Please help i need it urgently :(
Layout XML:
<Chronometer
android:id="@+id/simpleChronometer"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
Code:
Chronometer simpleChronometer = (Chronometer) findViewById(R.id.simpleChronometer); // initiate a chronometer
simpleChronometer.start(); // start a chronometer
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With