Android Studio supports screencasting from Android phones

Sometimes when we do technology sharing or function demonstration online, we want to share the screen of the connected mobile phone. At this time, we will turn to ApowerMirror, LetsView, Vysor, Scrcpy and other tools for help. If you are an Android Developer, now you have better options.

Android Studio mobile screen mirroring

Since Android Studio Electric Eel (Electric Eel), mobile screen projection is supported, and the function is very powerful:

  • The phone screen can be displayed on the computer in the form of an IDE embedded or an independent window
  • Both wheelless clarity and response speed exceed the performance of the above-mentioned software
  • Reverse operation: You can operate the mobile phone with the mouse on the computer side like an emulator, and the mobile phone responds to computer operations in real time.
  • Text copy and paste can be realized between the mobile phone and the computer through the pasteboard
  • Record and take screenshots of mobile phone screencasting content
  • free!

How to enable the function

Mobile screen projection in Android Studio Electric Eel is still an experimental function:

  • Windows: File > Settings > Experimental
  • Mac:Android Studio > Preferences > Experimental

Find Device Mirroring here

insert image description here
Official feature as of Android Studio Flamingo:

  • Windows: File > Settings > Device Mirroring
  • Mac:Android Studio > Preferences > Device Mirroring
    insert image description here

Projection effect

After enabling the function, connect the mobile phone with USB, click the Running Devices window, and the screen projection is successful after automatic pairing

Android Studio cell phone
Please add a picture description

When you use Compose to develop applications, you often use the Preview function to browse while developing. Now that you have the mobile screen projection function, you can use real devices to preview, and the performance is better than Preview!

Guess you like

Origin blog.csdn.net/vitaviva/article/details/128731788