Use multiple phones when developing for Android in Eclipse - android

My droid works fine. The other two droids I've tried are never recognized by adb and don't debug. Debugging is turned on with all 3 of them.
What's the problem?

To test that you have the correct drivers installed (on windows) or have everything setup right (on os x or linux):
Open a command prompt/terminal
Navigate to the tools folder of the android sdk
run "adb devices" (no quotes)
If all is well it will list all the device names on a new line. If something is wrong with your setup you will see question marks a line
I'm guessing you've seen this already but if not take a look at the instructions for setting up a devices for development.
Just as a side note, I'm not sure you can have 3 of the exact same device working at the same time (I assume you meant you have 3 Droids). Might only work with 3 distinctly different devices.

Did you remember to enable debugging in the phone settings ?
(in Settings => Applications => Development )

what do you mean by droid? Motorola Droid, HTC Droid or are you using droid to just mean you have three different models of android phone?
If the latter there is some configuration necessary - for my HTC Desire I had to setup some drivers: http://myhtcdesire.com/tutorials/how-to-install-the-adb-driver-on-windows

Related

Android: How to run/debug/test android app on tab?

I'm a novice in android app development (using Android Studio) and want to make an app and all set for go on but I have an issue and that is how can I run my app on my tab for test purpose as you know android emulator is slow (very slow). I had checked some answer but all are for window specific and I have Linux operating system.
I have a tablet (not rooted).
Usb cable.
wifi connection.
I need a way where I don't have to root my tablet and work on Linux too.
Thank you in advance
When you insert the cable of the tablet, linux should recognize it, if is not recognized you may install a driver.You can run the command:
$ lsusb
After that when appears the screen after you press run in AS, just select the device instead of the emulator.
If does not work, it could be that your tablet in development options ( psychically you have to interact with your tablet) does not have checked the option debug( on default is not activated), on some devices you have to look in the internet how to access to this option.
A last recommendation is to check in the manifest and in the build.gradle( take care there are two of them) that debbugable is set as true

Titanium can't find my Android Nexus device

Hi I'm trying to compile a Titanium Android app directly on my Nexus 7 (2013, SDK 4.3) device but I can't see any 'Titanium on Android Device' option in the Run Configurations.
My device is in Developer mode, connected to the USB, detected by Android File Transfer (Mac OS X 10.9, Titanium 3.1.4), detected by adb...
I tried to restart adb, restart Titanium, plug and unplug the device, but I still cannot see the option.
I also tested all this with Titanium 3.1.3, with no success.
I have no clue of what's happening :/ any help would be appreciated. thanks
It may sound stupid, but my friend had similar problems with his Nexus and he changed the USB slot to which he plugged his device and it worked.
Try using a different cable. Most cables are only able to load the device, somehow. Not every micro-USB-cable is capable of sending data, correctly.
Again a reason why I don´t like to work in the android environment. No one checks whether software and hardware is working the way it´s supposed to. That´s why I love Apples restrictive "closed" system. No 1000 viruses and other crap.
Well, that was a bit confusing but I finally found such option inside a Project Explorer menu...

Can I test Android on the Moto X?

I recently bought a Moto X and was following the online instructions for setting it up to test my android code. I installed the USB drivers and got to the place where it tells me that the phone is unlockable. I quickly returned the phone at this point before activating it and subsequently porting my number over.
Can I test code on the Moto X specifically even if it is NOT bootloader unlockable? Is this the case for all android devices?
Unfortunately I don't know anyone that is a developer or even anyone that owns a Droid phone that I could experiment with.
You do not need to unlock bootloader to test your Android applications. Please refer to Using Hardware Devices for more information regarding setting up any Android device for testing. Following is the relevant part quoted for your information:
You can use any Android-powered device as an environment for running, debugging, and testing your applications. The tools included in the SDK make it easy to install and run your application on the device each time you compile.
This is a general answer, not specific to Moto X. I do not see any reason why it should not apply to Moto X.

Eclipse does not see my Toshiba Folio 100 Android 2.2 tablet

After a) growing tired of the slowness of the emulator and b) nearing the end of the development of my first android app, I decided to connect my old and forgotten Toshiba Folio 100 android 2.2 tablet to my Windows 7 development PC, in order to deploy my android app. The PC and tablet 'see' each other, that is, the PC sees the tablet as a disk drive. In the android settings I switched on the developer mode. I read through the many advice threads of this site concerning deploying the app to a real device. To start with, in windows explorer, computer, right click, manage, does not result in recognition of the tablet, except for Toshiba storage USB device.
In Eclipse I went to Run configurations, target tab,tried all the different radio buttons settings, to no avail. The devices view, same story. Eclipse does not see the tablet. I also tried some old Archos 48 mini tablet, again nothing.
What can I do?
Thanks in advance.
do you see it as an android device? open a command prompt and type "adb devices" make sure your tablet is listed there, otherwise you need to find some adb drivers for it, you may want to try the generic adb usb driver.
If you're seeing the device in explorer listed as a disk drive it probably means you have the wrong USB mode on the device. It's called different things on different devices, but on many devices it's referred to as "Charge Only" mode (or not mass storage mode). Also make sure USB debugging is enabled on the device.

Emulator in Android for HTC Desire

Can anyone tell me how do i establish HTC Desire Emulator in my Eclipse.
I have already tried, available packages installation, but HTC is not there in third party packages.
There isn't a specific HTC emulator - rather you use the generic Android emulator and change the characteristics of it to match whatever model of phone and version of Andriod you want to target.
You need to install the Android SDK and use it to create Virtual Devices (AVDs). These can then be used to test your code before moving onto a physical device.
For detailed instructions see http://www.android.com.
Please check this question. You can achieve htc-desire like emulator by setting appropriate values..
The correct Eclipse/Android device configuration for HTC Desire

Categories

Resources