I use eclipse + ADT (andoid development tool) plugin to develop my android application.
I know during my development, I can run my application either on an emulator, or an android phone device(with data cable connected to my laptop).
BUT, now, I would like to run my application on a android Tablet(ZTE brand) during my development. How can I run it on the tablet?? I mean the tablet has no data cable to connect to my laptop, but only bluetooth.
What I need to configure on eclispe?
Can I just use bluetooth to connect the device, and trigger the application to run from eclipse?
How to run my application on the tablet during development on eclipse?
Perhaps this question could help. It discusses how you can connect to adb through Wi-Fi.
I've found dropbox to be a great way to distribute test versions of your apk. Make sure you have the setting turned on for non-market sources. Then just pull it up from within dropbox on your device.
if there is no usb-cable you cannot debug yor application on the tablet.
you can only export the app with eclipse and install the apk on the tablet to see how the application looks like. But there is no debugging over bluetooth
As long as your device can install apps from non-market sources, you can simply put your APK file somewhere accessible to a web browser, then browse to it from the device, which should cause it to be downloaded. Once it's downloaded, selecting it (using a file explorer app) will cause it to be installed.
You can't debug this way, but if you have something like aLogCat loaded you can view your app's log messages.
With an Android-powered device, you can develop and debug your Android applications just as you would on the emulator. Before you can start, there are just a few things to do:
Declare your application as "debuggable" in your Android Manifest.
When using Eclipse, you can skip this step, because running your app directly from the Eclipse IDE automatically enables debugging.
In the AndroidManifest.xml file, add android:debuggable="true" to the element.
Note: If you manually enable debugging in the manifest file, be sure to disable it before you build for release (your published application should usually not be debuggable).
Enable USB debugging on your device.
On most devices running Android 3.2 or older, you can find the option under Settings > Applications > Development.
On Android 4.0 and newer, it's in Settings > Developer options.
Note: On Android 4.2 and newer, Developer options is hidden by default. To make it available, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options.
Set up your system to detect your device.
If you're developing on Windows, you need to install a USB driver for adb. For an installation guide and links to OEM drivers, see the OEM USB Drivers document.
If you're developing on Mac OS X, it just works. Skip this step.
If you're developing on Ubuntu Linux, you need to add a udev rules file that contains a USB configuration for each type of device you want to use for development. In the rules file, each device manufacturer is identified by a unique vendor ID, as specified by the ATTR{idVendor} property. For a list of vendor IDs, see USB Vendor IDs, below. To set up device detection on Ubuntu Linux:
Log in as root and create this file: /etc/udev/rules.d/51-android.rules.
Use this format to add each vendor to the file:
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"
In this example, the vendor ID is for HTC. The MODE assignment specifies read/write permissions, and GROUP defines which Unix group owns the device node.
Note: The rule syntax may vary slightly depending on your environment. Consult the udev documentation for your system as needed. For an overview of rule syntax, see this guide to writing udev rules.
Now execute:
chmod a+r /etc/udev/rules.d/51-android.rules
Note: When you connect a device running Android 4.2.2 or higher to your computer, the system shows a dialog asking whether to accept an RSA key that allows debugging through this computer. This security mechanism protects user devices because it ensures that USB debugging and other adb commands cannot be executed unless you're able to unlock the device and acknowledge the dialog. This requires that you have adb version 1.0.31 (available with SDK Platform-tools r16.0.1 and higher) in order to debug on a device running Android 4.2.2 or higher.
When plugged in over USB, you can verify that your device is connected by executing adb devices from your SDK platform-tools/ directory. If connected, you'll see the device name listed as a "device."
If using Eclipse, run or debug your application as usual. You will be presented with a Device Chooser dialog that lists the available emulator(s) and connected device(s). Select the device upon which you want to install and run the application.
If using the Android Debug Bridge (adb), you can issue commands with the -d flag to target your connected device.
Installing a USB Driver
First, find the appropriate driver for your device from the OEM drivers table below.
Once you've downloaded your USB driver, follow the instructions below to install or upgrade the driver, based on your version of Windows and whether you're installing for the first time or upgrading an existing driver.
Tip: When you finish the USB driver installation, see Using Hardware Devices for other important information about using an Android-powered device for development.
Windows 7
Windows XP
Windows Vista
Caution: You may make changes to android_winusb.inf file found inside usb_driver\ (for example, to add support for other devices), however, this will lead to security warnings when you install or upgrade the driver. Making any other changes to the driver files may break the installation process.
Windows 7
To install the Android USB driver on Windows 7 for the first time:
Connect your Android-powered device to your computer's USB port.
Right-click on Computer from your desktop or Windows Explorer, and select Manage.
Select Devices in the left pane.
Locate and expand Other device in the right pane.
Right-click the device name (such as Nexus S) and select Update Driver Software. This will launch the Hardware Update Wizard.
Select Browse my computer for driver software and click Next.
Click Browse and locate the USB driver folder. (The Google USB Driver is located in \extras\google\usb_driver.)
Click Next to install the driver.
Or, to upgrade an existing Android USB driver on Windows 7 with the new driver:
Connect your Android-powered device to your computer's USB port.
Right-click on Computer from your desktop or Windows Explorer, and select Manage.
Select Device Manager in the left pane of the Computer Management window.
Locate and expand Android Phone in the right pane.
Right-click Android Composite ADB Interface and select Update Driver. This will launch the Hardware Update Wizard.
Select Install from a list or specific location and click Next.
Select Search for the best driver in these locations; un-check Search removable media; and check Include this location in the search.
Click Browse and locate the USB driver folder. (The Google USB Driver is located in \extras\google\usb_driver.)
Click Next to upgrade the driver.
Windows XP
To install the Android USB driver on Windows XP for the first time:
Connect your Android-powered device to your computer's USB port. Windows will detect the device and launch the Hardware Update Wizard.
Select Install from a list or specific location and click Next.
Select Search for the best driver in these locations; un-check Search removable media; and check Include this location in the search.
Click Browse and locate the USB driver folder. (The Google USB Driver is located in \extras\google\usb_driver.)
Click Next to install the driver.
Or, to upgrade an existing Android USB driver on Windows XP with the new driver:
Connect your Android-powered device to your computer's USB port.
Right-click on My Computer from your desktop or Windows Explorer, and select Manage.
Select Device Manager in the left pane.
Locate and expand Android Phone in the right pane.
Right-click Android Composite ADB Interface and select Update Driver. This will launch the Hardware Update Wizard.
Select Install from a list or specific location and click Next.
Select Search for the best driver in these locations; un-check Search removable media; and check Include this location in the search.
Click Browse and locate the USB driver folder. (The Google USB Driver is located in \extras\google\usb_driver.)
Click Next to upgrade the driver.
Windows Vista
To install the Android USB driver on Windows Vista for the first time:
Connect your Android-powered device to your computer's USB port. Windows will detect the device and launch the Found New Hardware wizard.
Select Locate and install driver software.
Select Don't search online.
Select I don't have the disk. Show me other options.
Select Browse my computer for driver software.
Click Browse and locate the USB driver folder. (The Google USB Driver is located in \extras\google\usb_driver.) As long as you specified the exact location of the installation package, you may leave Include subfolders checked or unchecked—it doesn't matter.
Click Next. Vista may prompt you to confirm the privilege elevation required for driver installation. Confirm it.
When Vista asks if you'd like to install the Google ADB Interface device, click Install to install the driver.
Or, to upgrade an existing Android USB driver on Windows Vista with the new driver:
Connect your Android-powered device to your computer's USB port.
Right-click on Computer from your desktop or Windows Explorer, and select Manage.
Select Device Manager in the left pane.
Locate and expand ADB Interface in the right pane.
Right-click on HTC Dream Composite ADB Interface, and select Update Driver Software.
When Vista starts updating the driver, a prompt will ask how you want to search for the driver software. Select Browse my computer for driver software.
Click Browse and locate the USB driver folder. (The Google USB Driver is located in \extras\google\usb_driver.) As long as you specified the exact location of the installation package, you may leave Include subfolders checked or unchecked—it doesn't matter.
Click Next. Vista might prompt you to confirm the privilege elevation required for driver installation. Confirm it.
When Vista asks if you'd like to install the Google ADB Interface device, click Install to upgrade the driver.
Links
Setting Up Device
USB Drivers
Related
Following the Standard instructions to make use of the USB Drivers for Android Development provided by Google here
http://developer.android.com/sdk/win-usb.html
Does not work on Windows 10
1) Right click on the Start menu and select Device Manager
2) Right click on the Android Device and select Update Driver
3) Select Browse my computer for driver software
4) Select Let me pick from a list of device drivers on my computer
5) Select have Disk and find the below location and paste in.
<SDK Location>\extras\google\usb_driver
Default location might be like below.
C:\Users\<your username>\AppData\Local\Android\android-sdk\extras\google\usb_driver
6) Click Next
7) Select the Android ADB Interface
8) Allow debugging on your device and your all set
You should now be able too easily develop on Xamarin or any other android platform and debug right to your device
After upgrading to windows 10, I tried all methods other than using the OEM provided USB cable for connecting my Galaxy Alpha phone. On using the USB cable which came along with the phone, it instantly got connected to my windows 10 pc.
I just found you need first to reboot windows (8/10) with feature Disable Driver Signature enforcement turned off, running command
shutdown /r /o
then selecting Troubleshoot, Advanced options, Startup Settings, Restart button and finally pressing F7 to "Disable Driver Signature enforcement" (just temporary until next reboot) as described below:
http://www.top-password.com/blog/how-to-disable-driver-signature-enforcement-in-windows-10-8-7/
Then, after you plug in Android device, you can see it in Device Manager, click Update Driver Software..., Browse My Computer for Driver Software, Let me pick from list of device ..., then there should be a button Have Disk and you should be free to pick a directory with downloaded Android USB Driver.
At least this option worked for me with combination of various ARM devices.
I tried to install the Google USB drivers needed for Android development on my Windows 10 PC. But for some unknown reason it fails.
The phone (Kazam Tornado 348)ships with an option to enable the phone as a virtual CD ROM. When I do so I can se an "Install" file that should install the needed drivers. However they fail without any further details.
I then wrote a mail to Kazam and asked the for new drivers - however they say that they do NOT have any drivers and I should ask Google !!!!! Funny !
On Googles development site I downloaded the "generic" USB drivers. They install but I can't update my Tornado 348 driver through the device manager. It simply says that no valid drivers was found.
I also looked through the list of OEM suppliers - but Kazam is no listed.
One final notice - I can see that the drivers supplied on the Virtual CD ROM is from Media Tek. Also think they supplied the CPU in the phone. But searching their homepage for a driver not give me any result.
Anyone else out there with a Kazam Tornado 348 that is working in Windows 10?
The USB actually work - but is marked with a yellow exclamation mark. So I can see the phone in the file explorer. But in the device manager I can see that there is a problem - and also in Visual Studio it will not show as a device I can use for testing my code.
BLU VIVO AIR had same issue.
Use a USB cable to connect the Windows PC and your phone . Open up Device manager. You'll see the your phone show up in "Other Devices" as unavailable.
Download and install the Google Generic USB Driver from http://developer.android.com/sdk/win-usb.html#top . Note down and remember the location where you install the google driver to.
Right mouse your phone select Update Driver Software…
Select "Browse for driver software on your computer"
Navigate to where you installed the Google USB Driver software
Select "Let me pick from a list of device drivers on my computer"
Select "Show all devices"
Select "Have Disk"
Navigate to where you installed the Google USB driver, select the android_winusb.inf file
In the Update Driver Software - YOUR PHONE dialog select "Android ADB Interface"
Ignore the "Update Driver Warning" message.
You will now see the Android Device -> Android ADB Interface in Device Manager, and VIVO AIR will be gone from "Other Devices". You should now also be able to turn on things like USB/Mass Storage Mode on the phone so you can view files from Windows Explorer as well as debug to the device.
I blogged about getting the generic google usb driver to install here with step by step and no funny links or ads - http://www.devfish.net/post/2015/07/20/android-usb-adb-drivers-for-blu-phones-vivo-air.aspx .
I have a nexus 4 and all the required drivers installed (the phone is recognized with the "adb devices" command).
When I try to debug my android app with Intellij idea over USB I get this output:
Waiting for device.
Target device: lge-nexus_4-xxxxxxxx
Uploading file
local path: C:\Users\Public\Documents\Java Projects\Test GDX Project\android\build\apk\android-debug-unaligned.apk
remote path: /data/local/tmp/com.testgdx.game.android
But nothing ever loads on my phone?
EDIT: After I manually installed the app once, usb device debugging started to work all of a sudden.
Trying using a different USB cable (i.e. original cable and not a cheap 0.99$ cable). for some devices, some cables are not compatible for debugging purposes.
Windows 7
To install the Android USB driver on Windows 7 for the first time:
Connect your Android-powered device to your computer's USB port.
Right-click on Computer from your desktop or Windows Explorer, and select Manage.
Select Devices in the left pane.
Locate and expand Other device in the right pane.
Right-click the device name (such as Nexus S) and select Update Driver Software. This will launch the Hardware Update Wizard.
Select Browse my computer for driver software and click Next.
Click Browse and locate the USB driver folder. (The Google USB Driver is located in \extras\google\usb_driver.)
Click Next to install the driver.
Android device chooser can't show my real device.
But device manager recognizes and I use Eclipse Juno,windows 7 and my device nexus 7, and I've already tried command: adb kill server and updating usb driver.
Pls update google usb driver.
link:http://developer.android.com/tools/extras/oem-usb.html
this link will help to solve the issue.
Connect your Android-powered device to your computer's USB port.
Right-click on Computer from your desktop or Windows Explorer, and select Manage.
Select Device Manager in the left pane of the Computer Management window.
Locate and expand Android Phone in the right pane.
Right-click Android Composite ADB Interface and select Update Driver. This will launch the Hardware Update Wizard.
Select Install from a list or specific location and click Next.
Select Search for the best driver in these locations; un-check Search removable media; and check Include this location in the search.
Click Browse and locate the USB driver folder. (The Google USB Driver is located in <sdk>\extras\google\usb_driver\.)
Click Next to upgrade the driver.
I'm on a Windows 7 device (Archos 101 Internet tab/Prestigio 7100c). It's connected with PC via USB cable. USB debugging is enabled from device settings.
Device manager -> PMP7100c -> right click -> Update Driver Software
-> Search Automatically For Updated Driver Software
-> Driver Software For Your Device Is Up To Date.
Then I open Eclipse
Run -> Run Configurations and select active devices as target -> apply
-> Run -> "No active compatible AVD's or devices found.
Relaunch this configuration after connecting a device or starting an AVD."
Is "adb" driver different from Device Menager's "driver software for your device"?I assumed that it is different and downloaded adb driver from Archos site and I got some .zip file.How to configure it?
look for the USB driver for your device
install it
restart your command prompt
To install the Android USB driver on Windows 7 for the first time:
Connect your Android-powered device to your computer's USB port.
Right-click on Computer from your desktop or Windows Explorer, and select Manage.
Select Devices in the left pane.
Locate and expand Other device in the right pane.
Right-click the device name (such as Nexus S) and select Update Driver Software. This will launch the Hardware Update Wizard.
Select Browse my computer for driver software and click Next.
Click Browse and locate the USB driver folder. (The Google USB Driver is located in \extras\google\usb_driver.)
Click Next to install the driver.
Or, to upgrade an existing Android USB driver on Windows 7 with the new driver:
Connect your Android-powered device to your computer's USB port.
Right-click on Computer from your desktop or Windows Explorer, and select Manage.
Select Device Manager in the left pane of the Computer Management window.
Locate and expand Android Phone in the right pane.
Right-click Android Composite ADB Interface and select Update Driver. This will launch the Hardware Update Wizard.
Select Install from a list or specific location and click Next.
Select Search for the best driver in these locations; un-check Search removable media; and check Include this location in the search.
Click Browse and locate the USB driver folder. (The Google USB Driver is located in \extras\google\usb_driver.)
Click Next to upgrade the driver.
If you are on a mac and are pretty sure you should already have the drivers for the device then make sure to click the check mark next to 'USB debugging' inside the 'Developer Options' in settings. I can't tell you how dumb I felt when I unlocked the developer options by pressing the build number seven times then saw the developer options were unlocked and assumed usb debugging would automatically be selected only to find out 30 min later that I had to touch the little box. Yeah... don't do dumb kids!
You might have to change the active USB computer connection setting. I had the same problem while running a Beanstalk custom rom based on Android 4.3. It was solved by switching from the default Media device (MTP) to Mass storage. The device was then automatically recognized by eclipse.