Droid@Screen

January 21, 2010 · Posted in Java 

I have recently start to learn programming Android. It’s Java, but the environment is very, very different from ordinary server and/or desktop Java programming. Mostly because the device is limited in all sorts of resources. Therefore, the API puts some burden on the lone hacker.

Anyway, I needed a simple tool to project the screen of my HTC Hero device on my PC, for showing it to an audience. I found one such application, but wasn’t really satisfied with its functionality and because I didn’t want to step on someones toes by messing around and changing way to much of the code I went for my own solution. My primary objective was to ensure it was operational before next Sunday, when I will need it.

Here is how it looks like

It is a simple Java Swing application, delivered as an all-inclusive executable JAR file. Therefore, one can launch it simply by double-clicking on the JAR file, or run the following command

java -jar droidAtScreen-0.3.jar

The Droid@Screen JAR file can be found here (pls understand it is alpha software)

Source Code

The source code is open source and I have put all of it to my git repo at Codaset.

The project is built using Maven. Before you can compile, you need to install two Android JAR files to your Maven repo. It is the android.jar and the ddmlib.jar files. Use the mvn install-file command. The easiest to get the mvn syntax right is to try compile it and wait for Maven to point out how to run the install-file command.

Screen-Shots

Here are some more screen-shots.

Landscape mode

Scaled image

Multiple windows

Save screenshots

Setting the path to the ADB executable

The application relies upon the Android Debug Bridge (ADB) application, which will be started unless it’s already running. So the very first thing Droid@Screen does is to prompt for that path.

—-

Comments

16 Responses to “Droid@Screen”

  1. Fabien on February 15th, 2010 10:48

    It will be find if we can record video.
    I Increase frame rate, but it’s a bit laggy. How can it be more smooth ?

  2. Tab on March 8th, 2010 23:00

    hi, can you list more details on how to use this application on pc?
    i have install the sdk and java, execute the downloaded jar and browse the path to sdk/tools/adb.exe but nothing happens still.

  3. Brian on March 13th, 2010 07:59

    Very nice, thank you! Exactly what I was looking for. I am also running at 30fps but seeing some lag when scrolling.

  4. Dave on March 19th, 2010 16:45

    Excellent utility, just what I was looking for. Had to do a live demo yesterday, wish I had this then. Thanks!

  5. Donn Felker on March 23rd, 2010 15:31

    Thank you for this. Much appreciated.

  6. [...] software on your PC (usually then projected onto a screen) then you might like to take a look at Droid@Screen. It’s a free (open source) Java utility that projects the current hardware screen image onto [...]

  7. winnux on April 25th, 2010 16:47

    Great job. It’s work. Waiting for the next version.

  8. gcstang on April 28th, 2010 14:05

    Awesome Application!!! Thank you.

  9. Fabrizio Giudici on April 30th, 2010 00:12

    Excellent tool, I’ll use for getting static snapshots for the manual of my application. If it is possible to have it smoothly working with higher fps rates, so it can be used to produced screencasts, it would be fantastic.

  10. [...] Droid@Screen Non permette il controllo dei dispositivi con ROOT, ma il Framerate รจ maggiore e di conseguenza la visualizzazione leggermente migliore. DOWNLOAD [...]

  11. rahul on May 10th, 2010 12:42

    Whats the minimum version of android sdk required to run this jar?

  12. Rajesh on May 14th, 2010 21:55

    Hi Ribo,

    Its an Awesome application. really very useful. Also can you please let me know how to take screenshot only in command line. Can you please provide the utility for that?

    Thank You.

    Regards,
    Rajesh Kumar

  13. Deema on June 2nd, 2010 15:36

    Thank u very much

    it really helped.

    ur work is perfect.

  14. jookyone on June 22nd, 2010 21:42

    Works great, but landscape doesn’t seem to work with Froyo… it displays the image in portrait mode correctly, but kinda hard to read sideways.

    Fantastic utility, Thanks!

  15. jookyone on June 22nd, 2010 21:43

    I stand corrected, it does work, please ignore the last comment.

  16. [...] to intercept the screen and display it on your computer at 6fps (limitation of the debug bridge). Droid@Screen : RiboComments I use this for tech demos at work when demonstrating capabilities with Android/AIR/Flash. Then [...]

Leave a Reply