What to do during the COVID-19 pandemic… well I cleaned up my house and found some old phones that I wasn’t using anymore.

I thought… what a waste! This machine power could be useful in some way. So hereby I introduce to you my device lab.

Device lab in action

It consists of 6 different devices, mounted on a piece of fibreboard. I can control the devices via WiFi and for the time being, it will run my automated tests for an android app project.

A few folks have asked how I set things up, and how I did it…

Every now and then I get confused on how to use the data you get back from the camera app or from the gallery. Now I’m saying to myself that I will write this down once and for all to just read it back when I’m confused again!

Photo by Glenn Carstens-Peters on Unsplash

Image from camera

Whenever you get the result back from the Intent that started the camera you will see a parameter called intent.

override fun onActivityResult(requestCode: Int, resultCode: Int, intent: Intent?) {

Within this intent is a URI called data. When we print this out you will get.


/storage/emulated/0/ is actually /data/media/0/ exposed through…

Dennis Anderson

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store