Pham Hong Phong
Pham Hong Phong

Reputation: 145

Eclipse can't debug android application on Samsung galaxy S4

i've installed Samsung_USB_Driver_for_Mobile_Phones_v1.5.14.0 driver in my computer. in my device i checked enable debug and allow unknown source. When i ran my application from eclipse, eclipse show a popup to select target device. i saw the device XXXXX with Offline state but run button still disable.

Upvotes: 2

Views: 6704

Answers (2)

Harshjags
Harshjags

Reputation: 163

The reason for this behaviour is device is unauthorised for USB debugging. Ideally a pop up should appear on the device asking to provide permission for USB debugging. Select Allow always for this computer and click OK. This will solve the offline issue.

If the pop up does not come up when you plug the device to computer. Open adb command prompt and run

adb usb in command prompt this will reboot android adb usb listner which will force the pop up to come on the device.

Upvotes: 1

cyberdenz
cyberdenz

Reputation: 2281

I had the same problem, the method I did was:

  1. Turn off your GS4
  2. Turn on your device to Recovery Mode (Vol up + power button)
  3. Open Device Manager in you computer
  4. Select Action->Scan for Hardware changes
  5. There will be an icon marked with red exclamation point symbol
  6. Right-click the icon -> Update Driver Properties -> "Search automatically. Your computer will download the drivers from the internet and update your computer.
  7. Your phone is still in recovery mode, select reboot
  8. You can check DDMS on eclipse if it is there.

Upvotes: 0

Related Questions