The digitalization led us to a point where most of our industries at some stage require coding skills. Therefore it is commonly said that programming is one of the most important skills to learn in the twenty-first-century.
Besides that, nowadays almost everyone has daily contact with computers and therefore potential the ability to access all the tools required to start coding. And even if that may have been a hurdle in the past for some people, the preconception of the nerdy programmer has long since passed.
These points may be only some of the reasons but summarized enough for many…
Based on my article on “Why many People Fail At Learning How To Code” where I gave the advice to not only rely on tutorials but rather gain practical experience by working on your own real projects, I want to share a list of examples for such kind of projects.
The list is not bound to any framework or programming language. Still, some ideas may fit better with one framework or another.
Snake is a classical computer game where you control a snake that can only go in four directions. Upwards, downwards, left, and right. The goal is to…
This short article is about a common problem in Android Development. How can we determine if our fragment has been recreated from a previous state?
This can mainly be a problem if you don’t make use of Jetpack’s Navigation Component and instantiate your fragments the old-fashioned way using a
If you instantiate your fragments in the
onViewCreated() method for example and use
add instead of
replace for your transaction, you will run into problems. You could quickly have multiple instances of your fragments in your respective container because of the fragment recreation without even noticing it.
Nevertheless which methods…
MaterialTickePicker was not the only new component that has been included in this update. We also got the new
ProgressIndicator that we want to talk about in this article.
This component has been included as one of the material design guidelines a long time ago. Unfortunately, a proper implementation with the mentioned material style never had been published for Android.
Therefore you always had to stick to the Androids’ native
In a recent post in the android developers blog, written by Ting-Yuan Huang and David Winer, the new Kotlin Symbol Processing (KSP) has officially been announced to be in Alpha state and is compatible with Kotlin version 1.4.30 upwards!
As a reason behind why they build this new compiler plugin, they argue that many developers report build times that are far too long. In addition, it is a problem that there is no native annotation processing system for Kotlin yet and therefore libraries like Android Room for example need to rely on Java annotation processing.
Not only provides the material library the MaterialDatePicker for easily implementing date selection with material style. With the recently released version 1.3.0 of the Android material library, we now finally have stable access to the
MaterialTimePicker component which allows easy time selection.
In this article, I provide you a quick overview of how to use both of these components with practical code examples.
Let’s start with the
MaterialDatePicker which was firstly introduced in version 1.1.0-alpha09 of the Android material library.
First, create a new project with a single activity and call it MainActivity. Go to your app-level build.gradle …
Sleep problems are not only local but global problems  that can be found in all of our performance-oriented societies. For example, the Centers for Disease Control and Prevention shows in one of their studies  that about 29% of U.S. adults reported having less than 7 hours of sleep per night.
Approximately 10% even had daily sleep problems in the last 30 days of the point in time of the study. Lack of sleep or sleep problems, in general, can cause various physical as well as mental health risks .
Often it’s the problem that after a stressful day…
Note: In order to follow this tutorial, you should have some basic knowledge in setting up a Spring Boot application and know how to run a Docker container.
First, let’s start with some quick fundamentals about the Publish-Subscribe-Pattern. The pattern is very simple but powerful. The following image shows the main concept:
Androids KTX extension functions frequently come to the rescue in situations wherein the old days, Java had forced us almost always to write multiple lines of code even for the smallest repetitive tasks.
Now with the luxury of extension functions in Kotlin, many times we can save these lines and therefore come often (but not always) to better readability and maintainability of our code.
One of these is the
withStyledAttributes extension function that I want to talk about in this article.
First, we want to set up a very simplistic custom view. …
There are many situations where we act weird in relation to the value of our money. Just think about how 1 liter of cola in the supermarket costs sometimes only about 1$. Even at this cheap price, you sometimes stand in front of the shelf and wonder if it’s really worth the price.
Then imagine the situation where you are at the restaurant. Suddenly you have no problem paying 4€ for 0.25l of cola. Let’s let out the fact that the restaurant has to pay their staff etc. But you are willing to pay four times the price for four…
Passionated Mobile & Backend Developer, besides tech I write about fitness, health, and self-development