Make a Timer App: Settings (Ep 5) – Android Kotlin Tutorial

Make a Timer App: Settings (Ep 5) – Android Kotlin Tutorial

In this course you will learn how to make a user interface. Later we’re going to code a timer which can run in the foreground. Then we are going to upgrade it to be able to run also in the background – and we will control it from notifications! Finally we will create a settings activity where a user will be able to set the length of the timer.

In this fifth and final part we’re creating settings for our timer app! They are pretty simple – we will be able to set the length of the timer. You will learn how to work with Android’s preferences so let’s get to it!

 

This post contains all the code that’s been written in this YouTube video.

 

You can also check out this GitHub repository: https://github.com/ResoCoder/TimerAppAndroidTutorial

 

preferences.xml

 

SettingsActivity.kt

 

SettingsActivityFragment.kt

 

PrefUtil.kt

 

activity_settings.xml

 

TimerActivity.kt

2 thoughts on “Make a Timer App: Settings (Ep 5) – Android Kotlin Tutorial

Leave a Comment