Android Development

The best practices as on 2025 are as follows:

  • Kotlin programming language
  • Use rebranded libraries called Jetpack, outside SDK
  • Declarative UI with Compose
  • Room ORM
  • Android Studio as IDE
  • Gradle as built system
  • Follow architectural guidelines
  • Hilt for dependency injection

Dependencies

  • Minimum supported Android SDK version
  • Latest Android Studio & its plugins
  • Gradle, its plugins & their respective versions
  • Runtime & test dependencies of the application

Each of the above items will get updated independently.

Wifi pairing of Phone with Android studio

For a long time, there were errors generated when trying to pair phone in android studio. It randomly works after several tries. Not much details were displayed in error message either.

Upon some web search, apprantly the phone is randmizing MAC addresses. After disabling this, pairing failed vvery often.

Later with command line, wifi pairing works reliably. The commands are:

  • Enable wifi debugging & select pairing by code in phone
  • adb pair PHONE_IP:PHONE_PORT
  • adb connect PHONE_IP:PHONE_PORT_2

IP & PORTs were shown in the phone.

made with ♥️