如何发送桌面屏幕到Android [英] How to send desktop screen to Android

查看:112
本文介绍了如何发送桌面屏幕到Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图建立一个远程桌面应用程序,其中客户端是一款Android平板电脑。服务器是用Java编写的。我能使用鼠标和键盘通过Wi-Fi,但现在我有问题要查看平板电脑上我的桌面。这里的$ C $我的服务器捕获的CS:

 公共无效screenCap(){
    矩形captureSize =新的Rectangle(lastXpos,lastYpos,500,500);
    IMG = robot.createScreenCapture(captureSize);
}

公众的BufferedImage getScreenCap(){
    返回IMG;
}
 

解决方案

Android的VNC查看是一个开源项目,你可以看到所有的codeS <一href="http://$c$c.google.com/p/android-vnc-viewer/source/browse/#svn/tags/v0_5_0/androidVNC/src/android/androidVNC"相对=nofollow>这里。

此外,随意尝试不同版本列出的项目。

I am trying to develop a remote desktop application where the client is an Android tablet. The server is written in Java. I'm able to use the mouse and keyboard over Wi-Fi, but now I'm having problems trying to view my desktop on the tablet. Here's the codes of my server capture:

public void screenCap() {
    Rectangle captureSize = new Rectangle(lastXpos, lastYpos, 500, 500);
    img = robot.createScreenCapture(captureSize);
}

public BufferedImage getScreenCap() {
    return img;
}

解决方案

Android VNC Viewer is an Open Source project and you can see all the codes here.

Also, feel free to experiment with the different versions of the project listed there.

这篇关于如何发送桌面屏幕到Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆