Optimize for large screens Collection
Enable your app to support an optimized user experience on tablets, foldables, and ChromeOS devices.
<uses-permission android:name="android.permission.CAMERA" /> <uses-feature android:name="android.hardware.camera.any" android:required="false" /> <uses-feature android:name="android.hardware.camera" android:required="false" /> <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" /> <uses-feature android:name="android.hardware.camera.flash" android:required="false" />
Support Chromebooks in your camera app
Configure your app manifest to support camera features and make your app available to Chromebook users on Google Play.
val myView = findViewById<View>(R.id.myView).apply { setOnTouchListener { view, event -> when (event.actionMasked) { MotionEvent.ACTION_CANCEL -> { //Process canceled single-pointer motion event for all SDK versions. } MotionEvent.ACTION_POINTER_UP -> { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU && (event.flags and MotionEvent.FLAG_CANCELED) == MotionEvent.FLAG_CANCELED) { //Process canceled multi-pointer motion event for Android 13 and higher. } } } true } }
Reject stylus palm touches
Enable your app to identify and reject palm touches during stylus input.
if (keyCode == KeyEvent.KEYCODE_SPACE) { togglePlayback() return true } return false
Pause and resume media playback with Spacebar
Enable your app to respond to Spacebar key presses on external keyboards to pause and resume media playback.
Have questions or feedback
Go to our frequently asked questions page and learn about quick guides or reach out and let us know your thoughts.