I've finally managed to make the emulator work and now can debug my game on it. Thank you.As I don't have an actual android device, I've installed an experimental version of ICS on my HP TouchPad. It seams everything works all right. I can use the adb utility provided with the SDK to connect to the device with no problem. But I cannot debug from inside eclipse under windows on the actual device.I created a second debug configuration for the device and selected my device in the Connection tab at the combo-box, but after a while I receive a message that eclipse cannot connect to the device. This is strange as I have no problem with the connection. Under a dos window using the adb command I can see I can connect, I even can shell into the device.
....I'll pass this on to the development team and see if I get any answers.Vinod
Hi,The device name in the DOS shell image that you posted looks weird due to the special characters. So we could try editing the scripts to make sure the scripts are handling this name correctly. For this, locate a script named deviceInfo.py in the configdb folder and modify the device variable to point to void (Modify the line that says "device = arg" to device = ' ' and repeat the device selection from the dialog). Please let me know the results.ThanksVinod
Thank you Vinod, but it was only a partial fix.
if device != '' : adb_common.set_adb_param ('-s ' + device)
device = ''
elif opt == "--device": device = arg
Just changing the two scripts (run.py and setup.py) didn't do the job so I've searched all .py files and modified in similar way all occurrences of device to be empty. Again I think it partial worked.
......For the second , you can edit the var SLEEP (in run.py and run_nostart.py), in order to add a delay between launching the activity and attaching gdbserver.
Hi Hamlatzis,For the first case you might need to add a delay before launching the Java native libraries (or inside your native library).