Function | Shortcut |
---|---|
New Tab | ⌘ + T |
Close Tab or Window | ⌘ + W (same as many mac apps) |
Go to Tab | ⌘ + Number Key (ie: ⌘2 is 2nd tab) |
Go to Split Pane by Direction | ⌘ + Option + Arrow Key |
Cycle iTerm Windows | ⌘ + backtick (true of all mac apps and works with desktops/mission control) |
You need to initialize TextureView
before opening a camera.
TextureView
is for displaying the image from camera on the device.
However, you cannot use it unless the texture is ready, either because the screen is currently off or it is initializing.
You should check mTextureView.isAvailable()
before opening your camera. Else you will mTextureView.setSurfaceTextureListener()
.
And open your camera in the callback method onSurfaceTextureListener
.
Before opening your camera you should check for a camera permission first.
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
import okhttp3.*; | |
import okio.Buffer; | |
import javax.net.ssl.*; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.security.GeneralSecurityException; | |
import java.security.KeyStore; | |
import java.security.cert.Certificate; | |
import java.security.cert.CertificateFactory; |