screen mirroring in android

11.9k Views Asked by At

I want to implement screen mirroring in Android platform.

I am thinking to follow this approach, is there any better way for the same:

  1. Open socket connection Android and PC.
  2. Capture screen or take screenshot at regular intervals and send it through socket.
  3. Display the received image in Canvas

Language: Java, Socket programming

My questions

  1. Is there any other better way to implement the above feature?
  2. How do I capture screen in Android Platform?
2

There are 2 best solutions below

3
On

The same way I implemented Android screen mirroring which are connected in same network. Code is available @ https://github.com/phaneendrak5757/ScreenMirroring

0
On

it possible but difficult to implement, instead you can use VNC implemention on android .

1) https://code.google.com/p/fastdroid-vnc/

or

2) http://code.google.com/p/android-vnc-server/

or

search android VNC server porting.