Posts with Tag: android

Github Actions Runner Docker Container with Android SDK

A couple weeks ago, I was setting up a CI system with instrumented tests to run on Android devices. ...

Android JVM unit tests showing stdout and stderr via gradle

Was debugging some test failures today, and was finding it hard to debug because upon failure only a ...

Wi-Fi Direct on Android has become Annoying

### UI/UX popups Several years ago when I was working on RightMesh, it used to be possbile to startu ...

Android Emulator with Github Actions on Linux

Occasionally, I work on some Android apps and in order to test them, I have a computer connected to ...

Most Recent Post

Multicast Ipv4 and Ipv6 in Java / Kotlin

I recently ran into a peculiarity of multicast in Java / Kotlin. I was using a MulticastSocket: [https://docs.oracle.com/javase/8/docs/api/java/net/MulticastSocket.html](https://docs.oracle.com/javase/8/docs/api/java/net/MulticastSocket.html) and trying to ensure that it winds up bound to either an Inet4Address or Inet6Address. It turns out that even if I did something like: ``` val multicastSocket = MulticastSocket(InetSocketAddress("0.0.0.0", MULTICAST_DEFAULT_PORT)) assert(multicastSocket.localAddress is Inet4Address) ``` The assertion could fail. Similarly if I did: ``` val multicastSock ...