Re: [android-developers] Use AndroidDebugBridge and ddmlib in my own desktop application

2011-03-04 Thread Panayotis Katsaloulis
On Mar 4, 2011, at 3:48 AM, Xavier Ducrohet wrote: > Hmm this is strange. The Eclipse plug-in basically does that. There > should be no other setup to do. > > Do you have the standalone DDMS running? > > Xav You mean the application DDMS? No, I don't. Now you said that, *after* failing to atta

Re: [android-developers] Use AndroidDebugBridge and ddmlib in my own desktop application

2011-03-03 Thread Xavier Ducrohet
Hmm this is strange. The Eclipse plug-in basically does that. There should be no other setup to do. Do you have the standalone DDMS running? Xav On Thu, Mar 3, 2011 at 5:32 PM, Panayotis Katsaloulis wrote: > > On Mar 4, 2011, at 3:15 AM, Xavier Ducrohet wrote: > >> ddmlib has opened that port l

Re: [android-developers] Use AndroidDebugBridge and ddmlib in my own desktop application

2011-03-03 Thread Panayotis Katsaloulis
On Mar 4, 2011, at 3:15 AM, Xavier Ducrohet wrote: > ddmlib has opened that port locally. Are you trying to connect to localhost? > Yes, here is the log if I try with telnet $ telnet 127.0.0.1 8611 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to

Re: [android-developers] Use AndroidDebugBridge and ddmlib in my own desktop application

2011-03-03 Thread Xavier Ducrohet
ddmlib has opened that port locally. Are you trying to connect to localhost? On Thu, Mar 3, 2011 at 4:32 PM, Panayotis Katsaloulis wrote: > > On Mar 3, 2011, at 10:15 PM, Xavier Ducrohet wrote: > >> oh wait I just realize you init ddmlib with init(false). >> >> the boolean is "client support",  

Re: [android-developers] Use AndroidDebugBridge and ddmlib in my own desktop application

2011-03-03 Thread Panayotis Katsaloulis
On Mar 3, 2011, at 10:15 PM, Xavier Ducrohet wrote: > oh wait I just realize you init ddmlib with init(false). > > the boolean is "client support", set it to true (and then the 1 > ddmlib-enabled app restriction will be important). Wow, you are right! By changing to "true", then I can properly

Re: [android-developers] Use AndroidDebugBridge and ddmlib in my own desktop application

2011-03-03 Thread Xavier Ducrohet
oh wait I just realize you init ddmlib with init(false). the boolean is "client support", set it to true (and then the 1 ddmlib-enabled app restriction will be important). 2011/3/3 Xavier Ducrohet : > Do you have DDMS running while you run your own app using ddmlib? > > Only one ddmlib-enabled a

Re: [android-developers] Use AndroidDebugBridge and ddmlib in my own desktop application

2011-03-03 Thread Xavier Ducrohet
Do you have DDMS running while you run your own app using ddmlib? Only one ddmlib-enabled app can connect to the clients. 2011/3/3 Panayotis Katsaloulis : > > On 03 Μαρ 2011, at 10:33 π.μ., Xavier Ducrohet wrote: > >> does DDMS show those clients? ddms/lib will only show clients that are >> debug

Re: [android-developers] Use AndroidDebugBridge and ddmlib in my own desktop application

2011-03-03 Thread Panayotis Katsaloulis
On 03 Μαρ 2011, at 10:33 π.μ., Xavier Ducrohet wrote: > does DDMS show those clients? ddms/lib will only show clients that are > debuggable (or all of them on the emulator). Yes it does. I can see it with a "bug" icon next to it. What I did (and forgive me if I am wrong), is to start it with a

Re: [android-developers] Use AndroidDebugBridge and ddmlib in my own desktop application

2011-03-03 Thread Xavier Ducrohet
does DDMS show those clients? ddms/lib will only show clients that are debuggable (or all of them on the emulator). Also doing a sleep and getting the device list is not the way to go. You should register listener on the bridge to be notified as devices get discovered/disconnected and clients are

[android-developers] Use AndroidDebugBridge and ddmlib in my own desktop application

2011-03-03 Thread Panayotis Katsaloulis
Hello all! I am trying to use AndroidDebugBridge in my desktop application but I fail. Namely, although I am able to get a list of devices currently attached to my system, I am not able get a list of Clients (the running applications and especially my running application). Here is a minimal exa

[android-developers] Use AndroidDebugBridge and ddmlib in my own desktop application

2011-03-02 Thread Panayotis Katsaloulis
Hello all! I am trying to use AndroidDebugBridge in my desktop application but I fail. Namely, although I am able to get a list of devices currently attached to my system, I am not able get a list of Clients (the running applications and especially my running application). Here is a minimal exa