在系统上共享Android屏幕

You may have come across many instances where you feel the need to share Android screen on Computer System. For e.g., when you’re demoing to a client, to take screenshot, recording screen etc…

您可能遇到过很多需要在计算机系统上共享Android屏幕的情况。 例如,当您向客户进行演示时,进行屏幕截图,录制屏幕等…

I have found some ways to do the same. Here, I have mentioned steps of two easy ways to achieve the same in Windows 10. Similar steps can be followed for other operating system.

我发现了一些方法可以做到这一点。 在这里,我提到了在Windows 10中实现相同目标的两种简单方法的步骤。对于其他操作系统,可以遵循类似的步骤。

Prerequisites:

先决条件:

If you want details about the prerequisites’ setup, please refer respective sections.

如果您需要有关先决条件设置的详细信息,请参阅相应的部分。

Let’s get started:

让我们开始吧:

1st method, Vysor — You can download and install app or just install as a plugin for your Chrome browser. As per latest update on Vysor app, Google is removing Chrome apps, so it is better to go with App.

1分 ST法, Vysor -你可以下载并安装应用程序或只安装一个插件,为您的Chrome浏览器。 根据Vysor应用程序的最新更新,Google将删除Chrome应用程序,因此最好与App一起使用。

Steps:

脚步:

  • Just plugin your android device or start Emulator.

    只需插入您的android设备或启动Emulator。
  • For real devices, you will get notification to Allow USB Debugging. Accept it.

    对于真实设备,您将收到“允许USB调试”的通知。 接受。
  • First time when you click on View button on your system’s Vysor app, Vysor application will get installed on your Android device. So that you can access display from you System.

    首次单击系统的Vysor应用程序上的“查看”按钮时,Vysor应用程序将安装在Android设备上。 这样您就可以从系统访问显示。
  • You need to give permission on your Android device for this.

    您需要为此在Android设备上授予权限。
Image for post

Pros:1. You don’t need to touch your phone and you can access display from your system. Of course it doesn’t include accessing hard buttons like Lock, Volume-Up and Volume-Down.

优点: 1.无需触摸手机,即可从系统访问显示内容。 当然,它不包括访问“锁定”,“增大音量”和“减小音量”等硬按钮。

This is the biggest advantage over other applications.

与其他应用程序相比,这是最大的优势。

Cons: 1. Resolution of sharing screen is not so good.2. Advertisements.3. You can’t change screen resolution.If you opt paid version of Vysor then these things won’t be bothering you, though.

缺点: 1.共享屏幕的分辨率不好2。 广告3。 您无法更改屏幕分辨率。但是,如果您选择付费版本的Vysor,那么这些事情就不会困扰您。

Image for post
Vysor
维索

2nd method, Droid@Screen. It’s my personal favorite. It’s just one time setup, then you don’t need to worry about that.

第二方法, 德罗伊德@画面 。 这是我个人的最爱。 这只是一次设置,因此您无需担心。

  • Download executable jar file from here.

    此处下载可执行的jar文件。

  • Go to saved path and double click on it to launch.

    转到保存的路径,然后双击以启动。
  • Or Open Command Prompt and run

    或打开命令提示符并运行

    $ java -jar D:\android\mobileScreenShare\droidAtScreen-1.1.jar

    $ java -jar D:\ android \ mobileScreenShare \ droidAtScreen-1.1.jar

Image for post
Droid@Screen
Droid @ Screen

Pros:1. As it is open source, no need to pay for anything.2. Screen resolution is great.3. No advertisement.4. Change casting screen resolution (Droid@Screen → Options → Preferred Scale → Change scale as per your requirement → Click on Restart ADB).

优点: 1.由于它是开源的,因此无需支付任何费用。2。 屏幕分辨率很棒3。 没有广告4。 更改投射屏幕分辨率(Droid @ Screen→选项→首选比例→根据您的要求更改比例→单击重新启动ADB)。

Cons:1. You can’t access Android device’s screen from Droid@Screen app.

缺点: 1.您无法从Droid @ Screen应用程序访问Android设备的屏幕。

It’s not a major issue, though.

不过,这不是主要问题。

您应该已经为Android设备安装了USB驱动程序。 如果没有,请查看此“安装OEM USB驱动程序”页面。 (You should have installed USB driver for you Android device. If not checkout this Install OEM USB drivers page.)

Image for post
Install OEM USB drivers
安装OEM USB驱动程序

下载并安装 Java-根据Andriod SDK的要求,任何版本都可以。 但是最好使用Java 1.8或更高版本。 (Download and install Java — any version is fine as per Andriod SDK’s requirement. But Java version 1.8 or greater, is preferable.)

Setup environment path so that you can access java from anywhere.

设置环境路径,以便您可以从任何地方访问Java。

Steps:

脚步:

  • Open File Explorer.

    打开文件资源管理器。
  • Right click on This PC.

    右键单击此PC。
  • Advance System Settings → Environment Variables.

    高级系统设置→环境变量。
  • If you have admin rights then under System Variables select Path variable else select for your login’s Path variable.

    如果您具有管理员权限,则在“系统变量”下选择“ 路径变量”,否则为登录名的“路径”变量选择。

  • Click on Edit → Enter new or Edit already added Java path → Click OK → Click OK → Click OK

    单击编辑→输入新的或编辑已添加的Java路径→单击确定→单击确定→单击确定
Image for post

Now you should be able to access java from anywhere…

现在您应该可以从任何地方访问Java了……

Image for post
$ Java -version
$ Java版本

要将Android设备与系统连接,我们需要ADB工具。 (To connect Android device with System, we need ADB tool.)

For this we need to Install Android SDK stand alone. But if you are developer, I can assume you would have installed entire Android Studio, in that case omit this step too.

为此,我们需要单独安装Android SDK。 但是,如果您是开发人员,我可以假设您已经安装了整个Android Studio ,在这种情况下,也可以省略此步骤。

To install SDK standalone, download it from here. Save it at your preferred location. I have removed version(_r30.0.3-windows) from file name. Note down the path and save it to environment variable just like we did for Java. Now, we can use ADB from anywhere on our system.

要独立安装SDK,请从此处下载。 将其保存在您的首选位置。 我已经从文件名中删除了版本( _r30.0.3-windows )。 记下路径,就像我们对Java所做的那样,将其保存到环境变量中。 现在,我们可以在系统上的任何地方使用ADB。

Image for post

翻译自: https://medium.com/swlh/share-android-screen-on-your-system-1052ced277b6

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值