I have been developing an android app, and i wanted to test it out on a real phone. I recently bought an htc thunderbolt to try it out in. The problem is, that my computer won't install the adb driver. What do i need to do to get it to work? The ide i am using is eclipse, the computer is windows 7 home primium.
Install HTC Sync from HTC's website (this includes phone drivers). Windows should then detect your phone without a problem.
Devices under windows need their drivers.
You can get Google ones from here and other vendors from here.
After Installing the Device driver your device will detect.
later goto command prompt and write the command
adb install
eg. adb install e:\test.apk
this will install the apk file to your device
In the worst case, you always can pass the .apk to the microSD of the phone simply with a pull from the DDMS.
I tried this with a Huawei mobile and it worked fine.
Related
I am just getting started in Android development, and am trying to get Eclipse (running on Windows 7) to recognise my phone so that I can use it for debugging. However, my phone does not seem to be recongised by Eclipse or by running "adb devices" from a command line.
Here's what I've tried:
I've tried both MTP (media device) and PTP (camera) transfer modes (similar questions on Stack Overflow have been resolved by using PTP).
I've ensured that USB debugging is turned on in my phone's settings.
I've manually installed a driver in Device Manager, by choosing "Update Driver Software" and selecting the .inf file in sdk\extras\google\usb_driver (which I had to modify by hand to include my device).
I've tried a Nexus 4 phone, a Nexus 7 tablet, and a Motorola Moto G phone. Behaviour is identical for all three devices.
I've tried the "Universal ADB driver", in case it behaves differently to the Google driver, but it doesn't behave any differently.
I've rebooted, I've reinstalled drivers, I've tried adb kill-server followed by adb start-server, etc.
No matter what combinations of the above I try, "adb devices" lists nothing. When I look in the Windows Device Manager, I can see "Android Composite ADB Interface" listed under the "Android Device" node, so I believe I have installed the driver correctly. I am logged in as an Administrator, so it's not a permissions thing either. I've tried every answer to every single similar question on Stack Overflow, but nothing works. I've been pulling my hair out all day and am close to running out of hair... any ideas appreciated.
EDIT: It just occurred to me what could be causing this. I am running 64-bit Windows 7, but 32-bit Java. Because I have 32-bit Java installed on my PC, I installed the 32-bit SDK. Would that explain this behaviour? Should I be running 64-bit Java? The only reason why I didn't is because 32-bit Java is installed by my company's group policy...
EDIT2: I have now noticed that when I plug an Android device in, and look at its Device ID in Device Manager, the device ID does not end in "&MI_01". When I plug the device into another Windows 7 PC, the device ID does end in "&MI_01". I believe this is why "adb devices" is not able to detect the device. Any idea why one PC would see a different device ID to another, with the only difference being the "&MI_01"?
Did you install your phone USB-driver?
and can you check it on device manager is installed or not? you can download your usb driver from yur phone company website.
After you install your phone usb driver , I think the problem is solved
I think the main reason is because the computer does not recognize your phone as below 1 device used to debug code, even usb device.
You can try to do the following:
- Turn up the window update
- Uninstall driver for usb connection from your phone to your computer
- Go to the homepage of the mobile device, download driver for usb connection to the computer and then reinstall the driver
Try Universal Naked Driver. This is to allow ADB, Fastboot & APX interfaces to work without installing any package much less multiples packages for users with multiple devices.
Download
After downloading extract .rar file into a folder.
Go to Device Manager, right click on Android phone and click to update driver. On next screen , give path of extracted folder and install it.
You can install with msi file also. Download .msi
Finally found the answer. I was missing a file called usb.inf from C:\Windows\inf. Not sure how on earth files just go missing from yours Windows directory...
I have a Samsung Galaxy S4 that I would like to deploy my app to using eclipse. However the device simply does not appear on the list of devices to deploy to.
I am using Windows 7 64-bit.
The phone appears as a drive when plugged in, allowing me to transfer files to and from the device.
The phone has developer mode and USB debugging switched on.
In the Android SDK Manager, the Google USB Driver appears as installed.
I have manually installed the usb driver located at \extras\google\usb_driver\.
This same device has been recognised and deployed to on other computers.
I have tried restarting the adb server in command prompt using adb kill-server and then typing adb start-server.
I have tried restarting both the phone and the computer.
My deployment screen simply thinks there is no android device:
Any ideas? Is there perhaps something I am missing here that is required for my android device to be properly recognised by eclipse?
First, is your device id showing up when you use adb devices
If it is, it's just a matter of restarting eclipse. Another cause could be that you're using the Google USB driver, whereas you should be using Samsung's Android USB driver, which can be found here:
http://developer.samsung.com/android/tools-sdks/Samsung-Andorid-USB-Driver-for-Windows
Get the drivers for your Galaxy S4 here:
http://developer.samsung.com/android/tools-sdks/Samsung-Andorid-USB-Driver-for-Windows
P.S. ya better got Nexus 5
You should install Samsung KIES, that have included some USB Drivers and something more, then you will able the possibility to eclipse sdk recognize your Phone, i was with the same problem, after i installed KIES everything worked fine, trust me.
KIES Download:
http://www.samsung.com/us/kies/
Before asking my question, I have looked through a few threads that share the same problem as me and have tried all the given solution with no success. I am from Malaysia.
I cannot get my device to be detected to test my app on my phone. I have checked both the "Unknown sources" and "USB debugging" settings in my phone. I am using eclipse. But if I create a random virtual device, my app is able to run there.
Okay so I am using a Motorola Atrix 2. And I'm using Windows 8 Pro 64 bit
I have downloaded android SDK bundle from here : http://www.motorola.com/sites/motodev/us-en/motodev_lp.html
I have also tried downloading the latest driver with no success. I have also added this line in the manifest android:debuggable="true"
I have tried both as a mass storage device and a media transferring device.
I would appreciate any help a lot because as of now, I cannot progress further into developing an android app and that saddens me. :(
I have attached a picture of which my android phone should be detected in the window, but as you can see, none.
https://pbs.twimg.com/media/BJu1XSgCYAEGCUd.jpg:large
go to /your-android-sdk-directory/platform-tools using command prompt.
type
adb kill-server
adb start-server
adb devices
n see whether ur device is detected now or not...
Note: if you're using a Linux machine then put ./ before adb
Install proper drivers for your adb devices, from Android-SDK archive or Motorola site.
If you are on Windows machine, go to the device manager find your device, and select folder with drivers for it.
Open you windows os's explorer, have a look at the process, if there two or more process hold your adb, try to exits the process
Check that the android:minSdkVersion is lower or equal to the Version running on the phone. If it is higher it wont show on "Android Device Chooser"
Install and run programs/drivers with admin rights.
Have you installed Motorola Device Manager?
When debugging Samsung and HTC devices I got it to work by installing that kind of software (for syncing the devices to the computer).
Download from the following: ABD Universal Driver
and install it. Make sure you have your device plugged in before installing and make sure you are on USB debug mode on the phone settings.
I am trying to test my android app (android 2.3.3) via my karboon A1+ phone. However, I cannot get Eclipse to recognize my device on the debug config menu. My phone is recognized by my computer when I connect via the usb cable. I can access my phone via windows but not Eclipse. Also, the karboon A1+ driver has been recently updated when I updated to android 2.3.4.
The reason I am using my phone to debug is b.c the emulator keeps crashing/failing to install my app. I am running Windows Vista 32bit. Any help would be appreciated. Thanks in advance.
Are you in developer mode on your phone?
This might help - Android devices
You would possible need to install the android drivers called ADB
This is also how to install the android driver from your SDK - Installing Drivers
Don't forget to enable apps from 'unknown sources' and enable ADB debugging.
Without both of those you can't install and get the console output from your app, which is pretty essential.
Those devices from small manufacturers are really tricky to get the drivers to work.
Apparently this guy got it working, it's a very hacky way, but I'll put his text:
I downloaded Zte n721 USB driver for my mobile. ( It
requires speecific driver for your device. Google usb drivers works
for very few mobiles. ) Then I put vender ID for Zte 0x19d2 to my
adb_usb.inf. ( You can not save in edit but you have to use : echo
0x19d2 >> adb_usb.inf ( use your vendor id you can get it from net I
got it from mypcdrivers.com) When you allow debugging on the mobile,
it works.
Apart from that the best thing is try to contact directly with your device manufacturer via this link http://www.karbonnmobiles.com/contact_us.php and demand an ADB Driver.
I have an HTC One V device, I am running some commands via ADB and using the drive mode to access from pc.
I know that HTC Sync installs the drivers, and it works completely fine. However I would like to install just the drivers without HTC sync application itself.
Is there any way to handle this?
you will need to install the android usb driver and add the hardware ids of your phone in the android_winusb.inf file - check this Problem when connecting my device to PC? .This should be enough for sending commands from adb. I also use HTC phone and I've never installed any drivers or sync software and this work just fine for me.