How to get DDMS working? - G1 Q&A, Help & Troubleshooting

I am trying to get DDMS working so I can send cmd line code to my phone via the desktop pc. I installed Eclipse IDE and added Android SDK. Someone in another thread said you get a DDMS tab with an icon. I dont see this. I also tried running the DDMS.bat in the "Tools" folder in SDK dir and get this message.
'java' is not recognized as an internal or external command,
operable program or batch file.
SWT folder '' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platfo
rm.

androidmonkey said:
I am trying to get DDMS working so I can send cmd line code to my phone via the desktop pc. I installed Eclipse IDE and added Android SDK. Someone in another thread said you get a DDMS tab with an icon. I dont see this. I also tried running the DDMS.bat in the "Tools" folder in SDK dir and get this message.
'java' is not recognized as an internal or external command,
operable program or batch file.
SWT folder '' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platfo
rm.
Click to expand...
Click to collapse
well for starters, do you have either the java idk or ire (forget which one you need)
but once you have java installed then just open up command prompt and then
1. if you already have the folder where you're tools are located set up in Environment Variables you can just type ddms
2. otherwise cd to the folder where ddms is located and then once you're there, type ddms

xidominicanoix said:
well for starters, do you have either the java idk or ire (forget which one you need)
but once you have java installed then just open up command prompt and then
1. if you already have the folder where you're tools are located set up in Environment Variables you can just type ddms
2. otherwise cd to the folder where ddms is located and then once you're there, type ddms
Click to expand...
Click to collapse
Thanks, my Environment Variables wasnt setup. Any ideas why the install didnt do this? Weird...

androidmonkey said:
Thanks, my Environment Variables wasnt setup. Any ideas why the install didnt do this? Weird...
Click to expand...
Click to collapse
the install never did this afaik ... does ddms work now though?

xidominicanoix said:
the install never did this afaik ... does ddms work now though?
Click to expand...
Click to collapse
ddms loads just fine now but my phone doesnt show up. My phone is connected with "USB debugging connected" enabled.
Any ideas?

did you mount your sd card?

Got it working, the windows driver wasnt installed.
I didnt realize I just needed to use the cmd line to install Navigation, not ddms. Thanks for the help

all you need is the command line to run ddms. Just put it where you have adb, go there via command line, and type"
ddms
Tada. eidt: it's not perfect, but it's mostly there.

Cannot mount SD card in terminal / console
delete ......

Related

nexus one system png files

hi, i just tried to open a nexus one image to extract all the png files, but failed. does anyone know how or where to get all these files, like banners, battery meters etc.?
thanks in advance!
They are in /system/framework/framework-res.apk. If you adb pull that file onto your PC you should be able to unzip it to get the pngs.
alright, thanks. i'll try this at home - i just dl adb but dont know how to use it. when i doubleclick adb.exe the windows opens and shuts very quickly, probably because i dont have admin rights here.
Alternatively, you could install a file manager like Astro that lets you browse the system folders and just email it to yourself from there. I've done that with a few of the files just because it's convenient and I don't have to dig out the USB cable.
woelv said:
alright, thanks. i'll try this at home - i just dl adb but dont know how to use it. when i doubleclick adb.exe the windows opens and shuts very quickly, probably because i dont have admin rights here.
Click to expand...
Click to collapse
adb is a command line app. Anyway Mike's suggestion of using Astro is an easier way.
my problem is the adb window wont stay open, so i have no chance to write a command line. i need all the files for themeing, so Astro seems inappropriate to me.
The Astro method should work. If you browse to /system/framework with it you should see the framework-res.apk. Long press on it and tap send. It should attach it to a new email which you can send to yourself. You can then unzip it with a program like 7-zip.
This will be easier than using adb as you will need to install the adb usb drivers, connect the phone to your PC and use a DOS prompt.
go start menu for xp and click run and type CMD and you'll get your command line. vista or 7 go to start and right above it type CMD. theres a little more to but that will get you your command line
woelv said:
my problem is the adb window wont stay open, so i have no chance to write a command line. i need all the files for themeing, so Astro seems inappropriate to me.
Click to expand...
Click to collapse
So run it like every other command line app. From the command line. (terminal, console, cmd, etc...)
craz6r said:
go start menu for xp and click run and type CMD and you'll get your command line. vista or 7 go to start and right above it type CMD. theres a little more to but that will get you your command line
Click to expand...
Click to collapse
Clarkster said:
So run it like every other command line app. From the command line. (terminal, console, cmd, etc...)
Click to expand...
Click to collapse
So I am pretty sure if the OP hasn't figured this out over six months later, they have either given up, or figured it out.
Good job bringing things back from the dead.

Can anyone explain how to properly "install" colorchange.jar program?

I've read through the main thread but most of the info there assumes you have the program up and running. Which I don't. I don't know where to install the files on my computer.
staunty said:
I've read through the main thread but most of the info there assumes you have the program up and running. Which I don't. I don't know where to install the files on my computer.
Click to expand...
Click to collapse
Did you try looking here?
http://forum.xda-developers.com/showthread.php?t=535630
Binary100100 said:
Did you try looking here?
http://forum.xda-developers.com/showthread.php?t=535630
Click to expand...
Click to collapse
Yeah, I did. I ran the command at the top java -XmX512M -jar...
I get an "unable to access jarfile colorchangev3.jar" error. I think its a bit over my level of knowledge anyways.
double post
Do you extract the file to AndroidSDK\tools?
do you have the java jdk installed and included in your PATH?
Know-Fear said:
do you have the java jdk installed and included in your PATH?
Click to expand...
Click to collapse
I'm almost positive I have the jdk included in my path. I believe I did that when I setup my SDK.
I noticed that in the example, within the command you type colorchangev3.jar...I placed the colorChangev3.jar in my AndroidSDK\tools folder and I've typed out the example yet I get a "unable to access Jarfile colorChangev3.jar" error.
Did you make sure to type the file path of the jar file; ie. c:\(file path).jar
evilkorn said:
Did you make sure to type the file path of the jar file; ie. c:\(file path).jar
Click to expand...
Click to collapse
I probably did it wrong but I just added a new PATH
PATH
C:\AndroidSDK\tools\colorChangev3.jar
The previous error is gone when I type the example but now I get an unrecognized java error..."java is not recognized as an internal or external command"...

[Q] New laptop...Issues with ADB

Ok so, my old HD crashed, completely unrecoverable. I now have a new laptop with W7HP. I set up the SDK folder and when I try to do ADB commands it fails. I get - ADB is not recognized as an internal or external command, operable program or batch file.
Can anyone help me?
Pauper7 said:
Ok so, my old HD crashed, completely unrecoverable. I now have a new laptop with W7HP. I set up the SDK folder and when I try to do ADB commands it fails. I get - ADB is not recognized as an internal or external command, operable program or batch file.
Can anyone help me?
Click to expand...
Click to collapse
R u in the sdk tools folder or have u set it up to run adb from any folder. If not that could be a reason why. Also make sure u install the Java jdk and jde files too.
Papa Smurf151 said:
R u in the sdk tools folder or have u set it up to run adb from any folder. If not that could be a reason why. Also make sure u install the Java jdk and jde files too.
Click to expand...
Click to collapse
I was following the instructions in this thread here - (Regaws ROOT instructions)
http://forum.xda-developers.com/showthread.php?t=694572
My phone is Rooted already. Im currently running on Darch's Froyo Nightly 8/23.
Also, I am not sure what you mean by the Java jdk and jde files...
Pauper7 said:
I was following the instructions in this thread here - (Regaws ROOT instructions)
http://forum.xda-developers.com/showthread.php?t=694572
My phone is Rooted already. Im currently running on Darch's Froyo Nightly 8/23.
Also, I am not sure what you mean by the Java jdk and jde files...
Click to expand...
Click to collapse
In order for adb to work I believe u need to install the Java development kit and Java runtime environment. U can find them both at either the Java webisite (Google search for Java JdK) or in my thread everything android in the dev forum. Which is a package of all the tools u need to mess with ur phone. Either way I believe that the Java stuff needs to be put on first
You need to have the tool folder in the path setting on your computer and the android sdk installed.
Or actually be in the tool folder directly.
That should be all that's needed.
Sent from my HTC Desire using XDA App
Papa Smurf151 said:
In order for adb to work I believe u need to install the Java development kit and Java runtime environment. U can find them both at either the Java webisite (Google search for Java JdK) or in my thread everything android in the dev forum. Which is a package of all the tools u need to mess with ur phone. Either way I believe that the Java stuff needs to be put on first
Click to expand...
Click to collapse
Found the Java stuff. do I extract it INTO the android tools folder or just right to the c Drive?
Just install java on your pc & make sure your path is set for the sdk & see where that puts you.
Sent from my phone.
had the same exact issue. all it did to fix it was:
re-unpack the sdk to the C:\ drive
install the HTC sync from the root thread you posted
REBOOT COMPUTER
plus in phone let it do its thing with drivers and such
and BOOM working.
Windows 7 x64

adb command

I have been tryng to set up adb for my N1. I have all the files downloaded and have gone as far as to see if the computer recognizes my phone. I go into device manager and the phone and files are there but when I go to the next step to see if the computer recognizes the phone, I type in certain commands I got from XDA and I got all the way till the last command before the computer pushes out the id #'s to my phone, I type "adb devices" and I get this response "adb is not recognized as a internal or external command, operable program or batch file".
I have studied these commands and I know I have typed in the right ones, I want to learn this process and unlock my bootloader and other things.
any help would be welcomed.
Thank You
Open a terminal in the folder where you have ADB file at.
IE
I have the sdk from froyo still so i navigate my way to the android-sdk-windows folder, go into the tools folder, SHIFT right click and click on open command prompt window here.
Download this, place in the same folder as your adb on the pc, and double click...
http://db.tt/aVW40cy
Sent from my Nexus One using XDA App
danger-rat said:
Download this, place in the same folder as your adb on the pc, and double click...
http://db.tt/aVW40cy
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
I dl file and opened the command prompt, worked fine but still having problem with finding my device, I noticed the adb file was hazed out and it said under it that it had moved, wonder if this is my problem??? I know I'm very close but just getting frustrated. I think I need to reinstall the adb file, I think??????
the problem is that the froyo sdk and the gingerbread sdk have different directory structures. Make sure you are in the right directory. Be it tools or platform-tools. In order to run adb (or fasboot) you need to be in the same directory as the executable (unless you've added the directories to the windows path).
Sent from my Nexus One
efrant said:
the problem is that the froyo sdk and the gingerbread sdk have different directory structures. Make sure you are in the right directory. Be it tools or platform-tools. In order to run adb (or fasboot) you need to be in the same directory as the executable (unless you've added the directories to the windows path).
Sent from my Nexus One
Click to expand...
Click to collapse
I am running gingerbread, I was in the tools folder, what folder should I be in?
If you get stuck, just take a look at this thread. It places all the files you need in one location. Much easier than the sdk...
http://www.nexusoneforum.net/forum/...mple-sdk-setup-manual-root-guide-windows.html
Sent from my Nexus One using XDA App
vinnyjr said:
I am running gingerbread, I was in the tools folder, what folder should I be in?
Click to expand...
Click to collapse
With the Gingerbread SDK, you should be in /platform-tools.

help setting up adb

im using windows 7 and cannot for the life of me figure out adb, i never used it on the hero, but with the optimus its the only option, i have the sdk installed, and all the device drivers. But when i try to do " adb devices" i get,
'adb' is not recognized as an internal or external command,
operable program or batch file.
i did edit the path, i think i did it correctly
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\Teleca Shared;C:\Program Files (x86)\QuickTime\QTSystem\;c:\android-sdk-windows\tools;c:\android-sdk-windows\platform-tools
thats what is is now.
will some one please helpppp mehhhh
and i know its not HTC but this community is the best ever so i thought id still ask here
jadenj5 said:
im using windows 7 and cannot for the life of me figure out adb, i never used it on the hero, but with the optimus its the only option, i have the sdk installed, and all the device drivers. But when i try to do " adb devices" i get,
'adb' is not recognized as an internal or external command,
operable program or batch file.
i did edit the path, i think i did it correctly
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\Teleca Shared;C:\Program Files (x86)\QuickTime\QTSystem\;c:\android-sdk-windows\tools;c:\android-sdk-windows\platform-tools
thats what is is now.
will some one please helpppp mehhhh
and i know its not HTC but this community is the best ever so i thought id still ask here
Click to expand...
Click to collapse
Try this:
cd C:\Program Files (x86)\android-sdk-windows\platform-tools
I have old adb so my path is different, but maybe that'll work? Otherwise someone using sdk rev10 needs to chime in...
Do I put that in the path thing? I'm new to all of this so sorry if I ask 5920274010 questions LOL
Sent from my LS670 using XDA App
jadenj5 said:
Do I put that in the path thing? I'm new to all of this so sorry if I ask 5920274010 questions LOL
Sent from my LS670 using XDA App
Click to expand...
Click to collapse
You just need to do a dir of c:\
locate your android-sdk_r10-windows directory. cd to it, then cd to android-sdk-windows, the cd to platform-tools. Do a dir and make sure adb is in that directory.
You can also use windows explorer to locate it or "search programs and files" for adb..
If you remember which directory sdk is installed in that would be where you'll have to look.. PM me if you need more help.

Categories

Resources