Bart Simons

Bart Simons


Thoughts, stories and ideas.

Tags


Twitter


android

Android WebView CPU Usage Fix

Ever noticed the high CPU usage of a WebView element in your Android app? The CPU usage of my Android device rises above 50%, even when idle. This is the code of my activity (please note, everything is written in Kotlin and not Java): package me.bartsimons.testapp import android.support.v7.app.AppCo…

Bart SimonsBart Simons

Android - Call UI-code from a class

Java and the Android SDK go perfectly well together, but just like any other 'good' programming language you sometimes have to get over some rough edges. As an example, it took me almost a day to figure out how to interact with the UI thread from a class! So, I'm sharing with you this handy little J…

Bart SimonsBart Simons