Android
Leaks about Google Pixel 6 and 6 Pro
Google Pixel 6 and Google Pixel 6 Pro leaked with some designs. Both devices appear to have a single-hole punched display and a bold industrial design on the back. Both devices appear to have a camera on their back that is a kind of bridge from one side to the other.
For your information, The leaks aren’t straight-up leaked from Google or anything like that, but were created by a third party based on real-life images of the phones.

The Google Pixel 6 Pro appears in this leak in two color combinations. Instead of a white background rear section, this larger Pixel 6 Pro appears with a very light orange background section. The Google Pixel 6 Pro also appears in a color scheme with an off-white bottom and champagne accents.
The Pixel 6 looks smaller and has only two cameras on the back, we wouldn’t be surprised if one of them was a normal wide sensor while the other was an ultra-wide. The Pixel 6 Pro, on the other hand, appears larger and adds a third sensor, hopefully a telephoto lens, though from the looks of these renders it won’t be a periscope type, so can’t expect more than 3x optical magnification.
Hopefully Google will also update the sensors it uses, which are getting kind of old now.
If you are curious about watching a video, here is the link created by FRONT PAGE TECH youtube channel.
Yuuma.
yuuma at 2021年05月17日 11:00:57
- 2021年03月31日
- Android
アプリからギャラリーを起動して画像を取得しましょう
tanaka at 2021年03月31日 10:00:41
[Unity] パフォーマンス改善Tips
nishida at 2021年03月11日 10:00:48
AndroidのカメラサポートライブラリのCameraXを使ってみました
Androidのカメラ制御は
カメラが対応している解像度の取得や
プレビュー解像度の設定、画面回転など
いくつか面倒なステップを踏む必要がありますが
それらを吸収してくれる公式ライブラリがCameraXです。
ライブラリの使用方法はGoogleのCameraXのドキュメントに記載されていますが、
実際に動かしてみたコードを以下に記載します。
MainActivityにカメラプレビューを表示するだけの機能を持つアプリです。
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.camera.core.CameraSelector
import androidx.camera.core.Preview
import androidx.camera.lifecycle.ProcessCameraProvider
import androidx.camera.view.PreviewView
import androidx.core.content.ContextCompat
import androidx.lifecycle.LifecycleOwner
import com.google.common.util.concurrent.ListenableFuture
class MainActivity : AppCompatActivity() {
private lateinit var cameraProviderFuture: ListenableFuture<ProcessCameraProvider>
private lateinit var previewView : PreviewView
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
// PreviewView
previewView = findViewById(R.id.cameraPreview)
// CameraProvider リクエスト
cameraProviderFuture = ProcessCameraProvider.getInstance(this)
// タスクを実行するエグゼキューター
val executor = ContextCompat.getMainExecutor(this)
// リスナー用タスク
val listenerRunnable = Runnable {
// ListenableFutureからCameraProviderを取得
val cameraProvider = cameraProviderFuture.get()
// ライフサイクルにバインド -カメラの指定とプレビューの設定も行う
bindToLifecycle(cameraProvider)
}
// CameraProvider リクエスト のリスナーをセット
cameraProviderFuture.addListener(listenerRunnable, executor)
}
private fun bindToLifecycle(cameraProvider: ProcessCameraProvider)
{
// Previewを作成
val preview : Preview = Preview.Builder().build()
// 背面カメラを選択
val cameraSelector : CameraSelector = CameraSelector.Builder()
.requireLensFacing(CameraSelector.LENS_FACING_BACK)
.build()
// Previewとレイアウト上のPreviewViewを接続
preview.setSurfaceProvider(previewView.surfaceProvider)
// CameraProvider をライフサイクルにバインド
val camera = cameraProvider.bindToLifecycle(this as LifecycleOwner, cameraSelector, preview)
}
}
Kotlinで書いているのもありますが、
ライブラリを使用しない時と比べて、ぐっと必要なコード量が減っています。
画像の撮影や、画像分析もライブラリに含まれているようです。
水曜担当:Tanaka
tanaka at 2021年02月10日 10:00:37
- 2021年02月03日
- Android
接続したAndroidの画面をパソコン上に表示するツールscrcpy
tanaka at 2021年02月03日 10:00:43