JensKlingenberg.de

Android | Linux | Internet

Category

Allgemein

Learn how to use LiveData

In this post i want explain what is LiveData and how you can use it. 1) What is LiveData LiveData is an observable data holder class. Unlike a regular observable, LiveData is lifecycle-aware, meaning it respects the lifecycle of other… Continue reading →

Higher Order Functions in Kotlin

What is a Higher Order Function? A higher-order function is a function that can take other functions as parameters and returns other functions. How to create a Higher Order Function?

You can create a higher order function like any… Continue reading →

How to use StateListDrawable

What is a StateListDrawable? Let’s say you have a View like a Button. You want to set a background to the button, you use

But what can you do when you want to set a different background while the… Continue reading →

How to use a SearchView with an empty query text submit

At the moment i’m working on an App with a search function. This alone is nothing special. Every second App has a search function. As a standard component the Android SDK offers the class SearchView. You can add an SearchView.OnQueryTextListener… Continue reading →

Android LPT 1: Use variables in Gradle

In this post i want to explain you how i use Gradle variables to keep my buildscript clearer. DefaultConfig and Dependencies The problem

By default you add your dependencies under dependencies in your build.gradle . But the more dependencies… Continue reading →

Android LPT: Overview

This is an ongoing series of blog posts with small tipps and tricks that helped me at developing Android apps. Android LPT: 1 Use variables in Gradle

Kotlin: Extensions

Kotlin has a feature to extend classes with new functions and properties, that you are normally not able to extend, maybe because they are final classes. Or you don’t want to create a custom type just because you are missing… Continue reading →

Merge Sort in Kotlin

I’m learning Kotlin. It’s a statically typed programming language developed by JetBrains running on the JVM. I believe Kotlin has a great future on Android, because it`s offering a lot of functions that Java is missing and i think Google… Continue reading →

How to run a WebServer on Android

So i have an old Samsung Galaxy S2. And i was thinking about things i could do with it. And i thought, maybe i can try to create a litte home automation server on it. First thing i was looking… Continue reading →

How to run Swift 4.0 on Ubuntu 16.04

Swift is a programming language developed by Apple Inc. for iOS, macOS, watchOS, tvOS, and Linux at the WWDC 2014. It shares a few similarities with Kotlin, which is now officially supported from Google for Android Development. Because it’s a… Continue reading →

© 2018 JensKlingenberg.de — Powered by WordPress

Theme by Anders NorenUp ↑