So I have a Nexus 7 and ultimately what I want to do is have it open an app and let my computer see what the app sees. I think the best way would be to either screenshot it or somehow mirror my Nexus 7 onto my PC [if that's even possible] -- this needs to be completely automated as well, however I can write some kind of small script for my PC if the mirroring option is possible.
If you enable USB debugging on your device and install Android SDK on your PC you can do this by a script:
The package name can be retrieved by listing all installed packages:
This starts the app specified by package name and activity name.
The ActivityName is a bit harder to get. It is written in the Manifest ambedded in the App APK file. Therefore you could pull the APK file from the device and read the manifest via
Then create the screen shot and download it to the PC (works with Android 4.0 and higher):
I just was looking for something similar as I seen Samsung tablet screen sharing with laptop that was connected to projector. This was done with TeamViewer app on laptop and TeamViewer QuickSupport, but this is at this moment only available to Samsung devices. (You can with their other apps remotely control pc or join meetig call, but that is about it). Next app I'm playing with is AirDroid but this has only limited access to files, multimedia. To be able to squeeze out more you will have to root your device and grant access. If I find something else more suitable for android device sharing to pc/laptop I will update this.