Results 1 to 7 of 7

Thread: Taking screenshots of android

  1. #1
    Join Date
    Nov 2007
    Location
    Plymouth, UK
    Beans
    91
    Distro
    Ubuntu 10.10 Maverick Meerkat

    [SOLVED] Taking screenshots of android

    ALWAYS REBOOT WHEN CHANGING ANYTHING MANUALLY. *headbutts wall to punctuate each word*

    Sorry guys


    Hi Guys,

    I've found this awesome tutorial for taking screenshots of android using Jaunty but I can't seem to get it to work on Karmic. I've installed the SDK, allowed USB debugging on my phone, created the udev rule and launched the DDMS script which gives me the following:



    As you can see the device shows up but only as ????????? is this a problem with the HTC Hero's version of Android 1.5, the fact that I'm using Karmic not Jaunty or have I made a silly error somewhere.

    Hope you can help

    Many thanks

    Grindboy

    [edit] just tried running DDMS in terminal and when I click on the device I get the following:
    Code:
    28:54 E/DDMS: device (????????????) request rejected: insufficient permissions for device
    java.io.IOException: device (????????????) request rejected: insufficient permissions for device
    	at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:726)
    	at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:363)
    	at com.android.ddmlib.Device.executeShellCommand(Device.java:275)
    	at com.android.ddmuilib.SysinfoPanel.loadFromDevice(SysinfoPanel.java:156)
    	at com.android.ddmuilib.SysinfoPanel.deviceSelected(SysinfoPanel.java:123)
    	at com.android.ddmuilib.SelectionDependentPanel.deviceSelected(SelectionDependentPanel.java:52)
    	at com.android.ddms.UIThread.selectionChanged(UIThread.java:1652)
    	at com.android.ddmuilib.DevicePanel.notifyListeners(DevicePanel.java:753)
    	at com.android.ddmuilib.DevicePanel.notifyListeners(DevicePanel.java:741)
    	at com.android.ddmuilib.DevicePanel.access$1100(DevicePanel.java:56)
    	at com.android.ddmuilib.DevicePanel$1.widgetSelected(DevicePanel.java:360)
    	at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
    	at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
    	at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    	at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
    	at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
    	at com.android.ddms.UIThread.runUI(UIThread.java:474)
    	at com.android.ddms.Main.main(Main.java:105)
    Hope that sheds more light
    Last edited by grindboy; March 6th, 2010 at 08:40 PM. Reason: Moar infos!
    We don't stop playing because we grow old, we grow old because we stop playing.
    AMD Phenom II X4 3.20GHz, 4GB (2x2GB) DDR3 RAM, 500W Power Supply, Sapphire ATI Radeon HD 5830, DVD-RW Drive, 32" LCD!
    Ubuntu 11.04 & Windows 7 Professional.

  2. #2
    Join Date
    May 2007
    Location
    Norway
    Beans
    5
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Taking screenshots of android

    To get this woriking on the Nexus One

    Code:
    SUBSYSTEMS=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="4e12", MODE="0666"
    I put the code above in
    Code:
    /etc/udev/rules.d/51-android.rules
    and restarted udev
    Code:
    reload udev
    I found the Vendor id and product from here http://www.linux-usb.org/usb.ids

  3. #3
    Join Date
    Nov 2007
    Location
    New Mexico
    Beans
    1
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Taking screenshots of android

    Placing the device code (below) in the /etc/udev/rules.d/51-android.rules file worked for the Motorola Droid on Ubuntu 9.10 (Karmic)

    Code:
    SUBSYSTEMS=="usb", ATTRS{idVendor}=="22b8", ATTRS{idProduct}=="41db", MODE="0666"
    Thanks for the tip!

    Mark
    Last edited by servilla; April 3rd, 2010 at 06:58 PM.

  4. #4
    Join Date
    Jun 2006
    Location
    Edinburgh
    Beans
    4
    Distro
    Ubuntu UNR

    Re: Taking screenshots of android

    If your device doesn't actually show in the linked list, you can also do a

    Code:
    lsusb
    
    Bus 001 Device 012: ID 19d2:1351 ONDA Communication S.p.A.
    idvendor = 19d2
    idproduct = 1351

    these codes are for an ZTE Blade/Orange San Francisco.

    and thanks for the groundwork to the guys above!

  5. #5
    Join Date
    Aug 2005
    Location
    Alcabideche, Portugal
    Beans
    232

    Re: Taking screenshots of android

    Just for reference, it worked perfectly on Ubuntu 10.10 with an HTC Hero using Cyanogenmod.
    Collecting data is only the first step toward wisdom but sharing data is the first step toward community

  6. #6
    Join Date
    Nov 2010
    Beans
    1

    Re: Taking screenshots of android

    just for reference too, it worked with my Samsung Galaxy Ace.

  7. #7
    Join Date
    Jan 2010
    Beans
    1

    Re: Taking screenshots of android

    thank you so much, this worked perfectly trying to get a tablet to work that the company i work for is developing.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •