Status bar transparency at runtime

Once an activity has a view (set via setContentView for example), it's no longer possible to call requestFeature. Using addFlags on the Window attached to the activity can do the trick:

// To make the navigation bar transparent

// To make the bar's height "eaten" by the underlying element

To restore the original state, it is possible to call clearFlags on the same window object.

Uninstall Android Studio (macOS)

$ rm -rf ~/Library/Preferences/AndroidStudio*
$ rm -rf ~/Library/Application\ Support/AndroidStudio*
$ rm -rf ~/Library/Logs/AndroidStudio*
$ rm -rf ~/Library/Caches/AndroidStudio*
$ rm ~/.emulator_console_auth_token

# Emulators
$ rm -rf ~/.android/avd

# SDKs
$ rm -Rf ~/Library/Android*

# Plist files
$ rm -rf ~/Library/Preferences/*
$ rm -rf ~/Library/Preferences/*