Android Tutorial #55 Set Portrait Landscape Programmatically For Your Activity

Опубликовано: 26 Май 2026
на канале: clientuser.net
1,480
10

Source Code:   / clientuser_net  

Following on from previous video, you may want to set the portrait or landscape programatically. Here I show you how to do that.

Here are some useful emulator shortcuts to rotate your device.




ANDROID EMULATOR PORTRAIT / LANDSCAPE KEYS
===========================================

[CTRL]+[F12] Toggle portrait / landscape

Or on a Macbook

[Fn]+[CTRL]+[F12] Toggle portrait / landscape

While were at it, here is a refresh of the volume shortcuts we covered a while back.

ANDROID EMULATOR VOLUME KEYS
===============================

[CTRL]+[F5] VOLUME UP +++
[CTRL]+[F6] VOLUME DOWN ---

OR on a MacBook.....

[CTRL]+[fn]+[F5 key] VOLUME UP +++
[CTRL]+[fn]+[F6 key] VOLUME DOWN ---