Android And Me Forums

Android And Me Forums » Support

Topic
RSS FEED

Help with Screen Shot Guide

  • 41 posts (by 6 users)
  • Started 8 months ago by rickyrescue
  • Latest reply from nova
  • This topic is resolved
  1. rickyrescue

    Member
    Posts: 307


    I've been having a lot of trouble trying to figure out how to do this. I'll take you step by step so hopefully somebody can figure out what I did wrong. I'm not really smart when it comes to these things, so please try to be nice if it was a simple mistake. :[

    Well first thing I noticed was that the JDK was out of date so I had to update it to version 14.
    I downloaded the Windows Version as told. (note: i use XP) I downloaded it, and then went to My Computer, Properties, Advanced, and added this: ;C:\Program Files (x86)\Java\jdk1.6.0_14\bin to the end of my Path. I then typed java -version on Run and it showed my JDK version was up to date and everything was fine.

    Next I downloaded the SDK which takes a while and followed the installation instructions. I think this is where I go wrong. Because I don't exactly understand this part:

    "Optionally, you may want to add the location of the SDK's primary tools directory to your system PATH. The primary tools/ directory is located at the root of the SDK folder. Adding tools to your path lets you run Android Debug Bridge (adb) and the other command line tools without needing to supply the full path to the tools directory.

    * On Linux, edit your ~/.bash_profile or ~/.bashrc file. Look for a line that sets the PATH environment variable and add the full path to the tools/ directory to it. If you don't see a line setting the path, you can add one:
    export PATH=${PATH}:<your_sdk_dir>/tools On a Mac, look in your home directory for .bash_profile and proceed as for Linux. You can create the .bash_profile if you haven't already set one up on your machine.
    * * On Windows, right-click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path (under System Variables). Add the full path to the tools/ directory to the path.

    Note that, if you update your SDK in the future, you should remember to update your PATH settings to point to the new location, if different."

    Even so, I'm able to launch the Davlik Debug Monitor, but it does not show my phone.
    While my computer does see my phone. I've tried mounting my G1, unmounting, re-arraging the Path and still the DDB does not see my G1.

    Help?? Please.

    Posted 8 months ago | #
  2. nova

    Member
    Posts: 268

    Best Answer

    ADB closes right away because it is finished (brings up loads of writing) or because it crashes?

    (on windows does adb load a window? :S)

    Have you enabled Home > Settings > Applications > Development > USB debugging on your phone by the way?

    To stop windows automatically installing drivers try downloading a cool windows program called USBDeview, open it up and you should see an Android Phone entry (although when I did this on another dev machine it didn't, I only noticed it as it appeared and disappeared when I plugged and unplugged my phone)... but once you've found it, right click and uninstall it. Windows should now not be able to auto install the driver and will prompt you to do it manually.

    Posted 8 months ago | #
  3. Justin Shapcott

    Moderator
    Posts: 706


    Did you install the USB Driver?

    Posted 8 months ago | #
  4. rickyrescue

    Member
    Posts: 307


    nEx.Software said:
    Did you install the USB Driver?

    I wasn't promted to install drivers.

    Posted 8 months ago | #
  5. Taylor Wimberly

    Admin
    Posts: 669


    ;C:\Program Files (x86)\Java\jdk1.6.0_14\bin

    That could be the problem right there. You are using XP so that is not the correct location for the path.

    on xp it should be

    ;C:\Program Files\Java\jdk1.6.0_14\bin

    Also note jdk version could be different for you.

    Also, I would reinstall the USB drivers located in the SDK folder.

    For you it should be sdkfoler\usb_driver\x86

    Posted 8 months ago | #
  6. Dr.Jeckyl

    Member
    Posts: 271


    Post the FULL text of your PATH variable.

    Mine (Win7):
    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Java\jdk1.6.0_14\bin;C:\android\tools

    Posted 8 months ago | #
  7. Justin Shapcott

    Moderator
    Posts: 706


    USB Driver install instructions here under Setting up a Device for Development:
    http://developer.android.com/guide/developing/device.html

    Posted 8 months ago | #
  8. Taylor Wimberly

    Admin
    Posts: 669


    rickyrescue said:

    I wasn't promted to install drivers.

    From anywhere in windows xp hit the windows key + pause break. You should be able to get to the device manager from there. Look to see if there are any devices with a yellow "!" mark next to them.

    On my computer, the Android Phone is listed under Portable devices.

    Posted 8 months ago | #
  9. Taylor Wimberly

    Admin
    Posts: 669


    Dr.Jeckyl said:
    Post the FULL text of your PATH variable.

    Mine (Win7):
    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Java\jdk1.6.0_14\bin;C:\android\tools

    I don't think the path is his real problem. If he can launch DDMS, then java should be working correctly. When I didn't have java setup, ddms would just close with an error.

    Posted 8 months ago | #
  10. Dr.Jeckyl

    Member
    Posts: 271


    twimberly said:

    I don't think the path is his real problem. If he can launch DDMS, then java should be working correctly. When I didn't have java setup, ddms would just close with an error.

    True. Worth a shot though. That was my problem the first 2 times I tried installing and taking screenshots.

    Posted 8 months ago | #
  11. rickyrescue

    Member
    Posts: 307


    twimberly said:
    ;C:\Program Files (x86)\Java\jdk1.6.0_14\bin

    That could be the problem right there. You are using XP so that is not the correct location for the path.

    on xp it should be

    ;C:\Program Files\Java\jdk1.6.0_14\bin

    Also note jdk version could be different for you.

    Also, I would reinstall the USB drivers located in the SDK folder.

    For you it should be sdkfoler\usb_driver\x86

    Well I have tried it without the (x86) before, since I thought that might be wrong. But no luck.
    There are also no devices with a yellow "!" mark next to them.

    Posted 8 months ago | #
  12. Justin Shapcott

    Moderator
    Posts: 706


    In my device manager (XP Pro), my G1 and Ion both list under the ADB Interface category. And occasionally ADB stops recognizing my devices so I reinstall the drivers and all is dandy.

    Posted 8 months ago | #
  13. Clark Wimberly

    Admin
    Posts: 664


    I tried this a few times unsuccessfully before realizing I had not installed the USB drivers. just plugged the phone in then when the install driver dialog came up I browsed to the /usb_driver folder that came with the SDK and let it do its thing.

    Posted 8 months ago | #
  14. Taylor Wimberly

    Admin
    Posts: 669


    rickyrescue said:

    Well I have tried it without the (x86) before, since I thought that might be wrong. But no luck.
    There are also no devices with a yellow "!" mark next to them.

    Can you find the Android Phone listed under any section of the device manager? Look in ADB Interface category like Justin suggested. I'll check on my XP laptop and see what it says.

    Posted 8 months ago | #
  15. Justin Shapcott

    Moderator
    Posts: 706


    Somebody should take screenshots of setting up to take screenshots...

    Posted 8 months ago | #
  16. Dr.Jeckyl

    Member
    Posts: 271


    nEx.Software said:
    Somebody should take screenshots of setting up to take screenshots...

    I'm actually setting up right now to do a video tut. It'll be for Win7 but should be easy enough to follow for XP.

    Posted 8 months ago | #
  17. rickyrescue

    Member
    Posts: 307


    twimberly said:

    Can you find the Android Phone listed under any section of the device manager? Look in ADB Interface category like Justin suggested. I'll check on my XP laptop and see what it says.

    I can see this under Disk Drive in Device Manager:
    "HTC Android Phone USB Device"

    Posted 8 months ago | #
  18. Dr.Jeckyl

    Member
    Posts: 271


    rickyrescue said:

    I can see this under Disk Drive in Device Manager:
    "HTC Android Phone USB Device"

    It's set up as a mass storage device then.

    Posted 8 months ago | #
  19. rickyrescue

    Member
    Posts: 307


    clojita said:
    I tried this a few times unsuccessfully before realizing I had not installed the USB drivers. just plugged the phone in then when the install driver dialog came up I browsed to the /usb_driver folder that came with the SDK and let it do its thing.

    I didn't get an install driver dialog.

    Posted 8 months ago | #
  20. rickyrescue

    Member
    Posts: 307


    Dr.Jeckyl said:

    It's set up as a mass storage device then.

    Is that bad?? With or without mounting the phone it still shows up under Disk Drive with that same name.

    Posted 8 months ago | #
  21. Dr.Jeckyl

    Member
    Posts: 271


    rickyrescue said:

    Is that bad?? With or without mounting the phone it still shows up under Disk Drive with that same name.

    No it's fine. Mine does the same thing.

    Posted 8 months ago | #
  22. Taylor Wimberly

    Admin
    Posts: 669


    rickyrescue said:

    Is that bad?? With or without mounting the phone it still shows up under Disk Drive with that same name.

    Can you right click on the device and then pick reinstall/update driver?

    You should then be able to browser to the SDK folder and manually pick the driver file to install.

    Posted 8 months ago | #
  23. Justin Shapcott

    Moderator
    Posts: 706


    Mine comes up as HTC Dream Composite ADB Interface under ADB Interface, and HTC Android Phone USB Device under Disk Drives.

    Posted 8 months ago | #
  24. nova

    Member
    Posts: 268


    You said you could launch ddms but could you launch it from the command prompt?

    If you type "adb" into the command prompt does it say unrecognised command? Yes? It's a problem with your PATH, you need to add the tools directory.
    If not, when typing "adb devices" does anything appear? No? It's a driver problem. In device manager, uninstall the driver for the device and then run the add new hardware wizard, this time manually selecting the driver from the c:\android folder instead of letting windows auto-install it.

    edit: obviousy, your phone must be plugged in for this!

    Posted 8 months ago | #
  25. rickyrescue

    Member
    Posts: 307


    nova said:
    You said you could launch ddms but could you launch it from the command prompt?

    If you type "adb" into the command prompt does it say unrecognised command? Yes? It's a problem with your PATH, you need to add the tools directory.
    If not, when typing "adb devices" does anything appear? No? It's a driver problem. In device manager, uninstall the driver for the device and then run the add new hardware wizard, this time manually selecting the driver from the c:\android folder instead of letting windows auto-install it.

    No I can launch ddms with command prompt. The problem is that ddms does not see my phone and it is not listen under devices, I'm going to uninstall and run the add new hardware wizard right now.

    Posted 8 months ago | #
  26. Taylor Wimberly

    Admin
    Posts: 669


    Quick question to rule out Java issue:

    Does ddms stay open, or does it close right away? If it stays open then java should not be an issue.

    Posted 8 months ago | #
  27. rickyrescue

    Member
    Posts: 307


    I uninstalled it, and then plugged it back in waiting for the add new hardware wizard but it just ended up doing everything on it's own.

    Posted 8 months ago | #
  28. rickyrescue

    Member
    Posts: 307


    twimberly said:
    Quick question to rule out Java issue:

    Does ddms stay open, or does it close right away? If it stays open then java should not be an issue.

    It stays open. What closes right away is adb.

    Posted 8 months ago | #
  29. Justin Shapcott

    Moderator
    Posts: 706


    rickyrescue said:

    It stays open. What closes right away is adb.

    ADB normally closes right away... Good ol' Windows. Run it from a cmd window and it will stay up.

    Posted 8 months ago | #
  30. Justin Shapcott

    Moderator
    Posts: 706


    nova said:
    Have you enabled Home > Settings > Applications > Development > USB debugging on your phone by the way?

    I was in the middle of posting to ask that same question...

    Posted 8 months ago | #

Reply »

You must log in to post.