-
If you want specefic version, append
@<version-number>
topostgresql
. e.g:postgresql@13
-
Install
postgresql
using command line:brew install postgresql
Note: look through installation caveat for more tips. More details below. -
brew
will automatically runinitdb
after installation.initdb --locale=C -E UTF-8 /opt/homebrew/var/postgresql@
-
If you need to have
postgresql@
first in your PATH, run:echo 'export PATH="/opt/homebrew/opt/postgresql/bin:$PATH"' >> ~/.zshrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* An {@link ActivityResultContract} to request the user to pick a contact from the contacts | |
* app. | |
* <p> | |
* The result is a {@code content:} {@link Uri}. | |
* | |
* @see ContactsContract | |
*/ | |
public static final class PickContact extends ActivityResultContract<Void, Uri> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:aapt="http://schemas.android.com/aapt"> | |
<aapt:attr name="android:drawable"> | |
<vector | |
android:width="24dp" | |
android:height="24dp" | |
android:viewportHeight="24" | |
android:viewportWidth="24"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package xyz.android.amrro.example; | |
import android.arch.lifecycle.Lifecycle; | |
import android.arch.lifecycle.LifecycleObserver; | |
import android.arch.lifecycle.MutableLiveData; | |
import android.arch.lifecycle.OnLifecycleEvent; | |
import android.content.Context; | |
import android.net.ConnectivityManager; | |
import android.net.Network; | |
import android.net.NetworkCapabilities; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.weathers.amro.tests; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.CompoundButton; | |
import android.widget.Switch; | |
import android.widget.TextView; | |
import android.widget.Toast; |