[Q] DDMS - device disappears after ~10s until adb is reset - Android Software Development
Hi,
I've got adb all setup properly and working, but for the first time today I was trying DDMS. It has my DHD there for a few seconds (anywhere from 2-10), then it disappears from the list until I choose "Actions>Reset ADB". Here's the cmd window of DDMS:
04:06:11 E/adb:
04:06:11 E/adb: This application has requested the Runtime to terminate it in an
unusual way.
04:06:11 E/adb: Please contact the application's support team for more informati
on.
04:06:16 W/DeviceMonitor: Failed to connect to client '2807': timeout
04:06:17 E/DDMS: An existing connection was forcibly closed by the remote host
java.io.IOException: An existing connection was forcibly closed by the remote ho
st
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(Unknown Source)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
at sun.nio.ch.IOUtil.read(Unknown Source)
at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
at com.android.ddmlib.AdbHelper.read(AdbHelper.java:640)
at com.android.ddmlib.AdbHelper.read(AdbHelper.java:616)
at com.android.ddmlib.AdbHelper.readAdbResponse(AdbHelper.java:216)
at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:734)
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:373)
at com.android.ddmlib.Device.executeShellCommand(Device.java:276)
at com.android.ddmuilib.SysinfoPanel.loadFromDevice(SysinfoPanel.java:15
9)
at com.android.ddmuilib.SysinfoPanel.deviceSelected(SysinfoPanel.java:12
6)
at com.android.ddmuilib.SelectionDependentPanel.deviceSelected(Selection
DependentPanel.java:52)
at com.android.ddms.UIThread.selectionChanged(UIThread.java:1684)
at com.android.ddmuilib.DevicePanel.notifyListeners(DevicePanel.java:752
)
at com.android.ddmuilib.DevicePanel.notifyListeners(DevicePanel.java:740
)
at com.android.ddmuilib.DevicePanel.access$1100(DevicePanel.java:56)
at com.android.ddmuilib.DevicePanel$1.widgetSelected(DevicePanel.java:35
7)
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:492)
at com.android.ddms.Main.main(Main.java:103)
04:06:17 E/DeviceMonitor: Adb connection Error:An existing connection was forcib
ly closed by the remote host
04:06:17 W/DeviceMonitor: Failed to connect to client '2840': An existing connec
tion was forcibly closed by the remote host
04:06:19 E/DeviceMonitor: Connection attempts: 1
04:06:19 E/Logcat: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
at java.nio.channels.SocketChannel.open(Unknown Source)
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:367)
at com.android.ddmlib.Device.executeShellCommand(Device.java:284)
at com.android.ddmuilib.logcat.LogPanel$3.run(LogPanel.java:527)
04:06:19 W/DeviceMonitor: Failed to connect to client '2906': Connection refused
: connect
04:06:20 W/DeviceMonitor: Failed to connect to client '2938': Connection refused
: connect
04:06:20 E/EventLog: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
at java.nio.channels.SocketChannel.open(Unknown Source)
at com.android.ddmlib.AdbHelper.runLogService(AdbHelper.java:464)
at com.android.ddmlib.AdbHelper.runEventLogService(AdbHelper.java:445)
at com.android.ddmlib.Device.runEventLogService(Device.java:290)
at com.android.ddmuilib.log.event.EventLogPanel$8.run(EventLogPanel.java
:454)
04:06:21 E/DeviceMonitor: Connection attempts: 2
04:06:21 W/DeviceMonitor: Failed to connect to client '3047': Connection refused
: connect
04:06:22 W/DeviceMonitor: Failed to connect to client '3078': Connection refused
: connect
04:06:23 E/DeviceMonitor: Connection attempts: 3
04:06:25 E/DeviceMonitor: Connection attempts: 4
04:06:27 E/DeviceMonitor: Connection attempts: 5
04:06:32 E/DeviceMonitor: Connection attempts: 6
04:06:34 E/DeviceMonitor: Connection attempts: 7
04:06:38 E/DeviceMonitor: Connection attempts: 8
04:06:40 E/DeviceMonitor: Connection attempts: 9
04:06:42 E/DeviceMonitor: Connection attempts: 10
04:06:44 E/DeviceMonitor: Connection attempts: 11
Any ideas are appreciated
Any ideas?
Please guys?
Code:
http://code.google.com/p/android/issues/detail?id=12141
replace your adb.exe with the one posted in the link.
Thank you so much But for some reason the parts under emulation tab are greyed out? Can I not send a mock location/call/sms to my physical DHD?
have you enabled allow mock locations on your device? settings->applications->developement-> Allow mock locations
Yep, mock locations is selected, and usb debugging is also :/
i think you can't simulate call/sms when ddms is connected to a device. i think it's only for the emulator. According to the documentation If your application depends on the location of the phone, you can have DDMS send your device or AVD a mock location
Check this two links.
http://developer.android.com/guide/developing/debugging/ddms.html
http://developer.android.com/guide/topics/location/obtaining-user-location.html#MockData
Ah fair enough, I thought it was fine for a physical device too. Thanks for all your help
Related
Deploying app to debug on spv m500
Hi There, I am useing .net 2003, create a C# Smart Device app for smartphone 2003. I can run this on the emulator ok. I have the phone connected by activesync. When I try to deploy to the "smartphone device (Default)" it pauses for a few seconds and a dialog apears saying there where deployment errors. Heres the output: ------ Deploy started: Project: SmartDeviceApplication2, Configuration: Debug Smartphone ------ Deploying to Smartphone Device using TCP Connect Transport Error: Cannot establish a connection. Be sure the device is physically connected to the development computer. ---------------------- Done ---------------------- Build: 1 succeeded, 0 failed, 0 skipped Deploy: 0 succeeded, 1 failed, 0 skipped Can anyone help me with what I am doing wrong. Cheers Andy
pls help remote access error 734
i trying to use xda 2 as a modem for gprs on laptop. i am using usbmodem dialer.exe and i had this error remote access error 734 pls help thanks
Remote Access Auto Connection Manager Are you on Windows XP? make sure your modem driver installed correctly and the property of Dialer was right (user, etc) Check your XP service. Right click My Computer --> Manage. Take a look 'service' under 'service and application' Find 'Remote Access Auto Connection Manager' and 'Remote Access Connection Manager'. Start both of those service, change their property to Automatic if necessary so they'll loaded on windows start up. Does it fix your problem?
[Q] Wi-Fi Hotsop and USB tethering are failed(RUNNYMEDE 0.82.401.1)
Runnymede 0.82.401.1 have bug, Author say "Tell me when you test, use this rom ! Thanks" http://forum.xda-developers.com/showthread.php?t=1268580 But I am new user,I can't post reply @@ Who can help me, Wi-Fi Hotsop and USB tethering are failed . 1.Wi-Fi Hotsop is Failed a)Wi-Fi Hotsop can open, but PC get a Network is limited,it can't link to internet. b)In PC Wi-Fi List,HD2 Wi-Fi Hotsop always no security,whether Wi-Fi Hotsop set any security type. c)If you change Wi-Fi Hotsop security and open it , HD2 will restart . 2.USB tethering is Failed if you open it,it will show "unable to tuen on" My PC OS is Windows 7.It had install Java SE 7 JDK,Android SDK Tools、google usb driver、HTC Sync。
TayYeh said: Runnymede 0.82.401.1 have bug, Author say "Tell me when you test, use this rom ! Thanks" http://forum.xda-developers.com/showthread.php?t=1268580 But I am new user,I can't post reply @@ Who can help me, Wi-Fi Hotsop and USB tethering are failed . 1.Wi-Fi Hotsop is Failed a)Wi-Fi Hotsop can open, but PC get a Network is limited,it can't link to internet. b)In PC Wi-Fi List,HD2 Wi-Fi Hotsop always no security,whether Wi-Fi Hotsop set any security type. c)If you change Wi-Fi Hotsop security and open it , HD2 will restart . 2.USB tethering is Failed if you open it,it will show "unable to tuen on" My PC OS is Windows 7.It had install Java SE 7 JDK,Android SDK Tools、google usb driver、HTC Sync。 Click to expand... Click to collapse having exactly same problem...
TayYeh said: Runnymede 0.82.401.1 have bug, Author say "Tell me when you test, use this rom ! Thanks" http://forum.xda-developers.com/showthread.php?t=1268580 But I am new user,I can't post reply @@ Who can help me, Wi-Fi Hotsop and USB tethering are failed . 1.Wi-Fi Hotsop is Failed a)Wi-Fi Hotsop can open, but PC get a Network is limited,it can't link to internet. b)In PC Wi-Fi List,HD2 Wi-Fi Hotsop always no security,whether Wi-Fi Hotsop set any security type. c)If you change Wi-Fi Hotsop security and open it , HD2 will restart . 2.USB tethering is Failed if you open it,it will show "unable to tuen on" My PC OS is Windows 7.It had install Java SE 7 JDK,Android SDK Tools、google usb driver、HTC Sync。 Click to expand... Click to collapse download windows mobile from www.download.com and run it,it'll install the driver(s) for u,then try.........IT WORKED FOR ME
What is I must to installed What is I must to installed in "download page"?! Can you give me link? Thank you~
It is a problem with the RUNNYMEDE ROM I guess, because USB Tethering is working fine in my FROYO ROM.
[Q] Help me
I am getting this error to connect sql database in eclipse Exception in thread "main" com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host localhost/1433, port 1433 has failed. Error: "null. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.". at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:190) at com.microsoft.sqlserver.jdbc.SQLServerException.ConvertConnectExceptionToSQLServerException(SQLServerException.java:241) at com.microsoft.sqlserver.jdbc.SocketFinder.findSocket(IOBuffer.java:2243) at com.microsoft.sqlserver.jdbc.TDSChannel.open(IOBuffer.java:491) at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1309) at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:991) at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:827) at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1012) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at jdbc.Main.main(Main.java:13)
do you have your firewall open on your server to allow the connection? That is what the error is talking about.
[Q] PPPOE connection error- plz help!
Hi. I have Lenovo A2107A-H with android 4.0.3 and i rooted this tablet. I download several PPPoE apk and install them. But they can not connect pppoe ADSL. for exam the software: PPPoE for Android show me this errors: couldn't set tty to ppp discipline: invalid argument pppoe: read (asyncReadFromppp): Session 2280: input/output error pppoe: read (asyncReadFromppp): Session 2326 : input/output error therefore i can not use pppoe internet connection. please help and show a solution. Thanks