Skip to content

Instantly share code, notes, and snippets.

View androiddevnotes's full-sized avatar
🐣

Android Dev Notes androiddevnotes

🐣
View GitHub Profile

Install Android SDK CLI Ubuntu 20.04 WSL2 (Work in Progress)

Install Java 8

sudo apt update

sudo apt install openjdk-8-jdk-headless
import timber.log.Timber
import kotlin.properties.ReadOnlyProperty
import kotlin.reflect.KProperty
class MyClass {
// This will automatically have the TAG "MyClass"
private val log by timber()
fun logSomething() {
log.i("Hello")
@Sharkaboi
Sharkaboi / RecyclerViewAdapterTemplate.md
Last active January 27, 2022 11:55
RecyclerView Adapter template with DiffUtil.ItemCallback, ViewBinding and custom listeners. Best when used with livedata.

Adapter Template


#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME}#end

import androidx.recyclerview.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.AsyncListDiffer
@wavezhang
wavezhang / java_download.sh
Last active April 19, 2025 05:00
download java from oracle without login
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz