I am new to Android. I can't get the application to run on real device. I'm using Eclipse.
I followed as is said in the android developer forum but eclipse AVD is not finding any usb connected device. I enabled usb debuging in my mobile and set android:debuggable="true" in manifest file but Eclipse is not getting the device connected.
Did your PC recognize you phone device?In other words,did you install driver correctly?
Probably there is only one point you're missing. According to http://developer.android.com/tools/device.html you have to install usb driver for adb (if you are developing on windows) or you need to add a udev rules file that contains a USB configuration for each type of device you want to use for development (if you are developing on Ubuntu Linux)
Before testing your application on real device please check your device is visible in Running Devices or not.If it is not visible simply do one thing install PdaNet on your desktop computer it will detect driver for the respective phone and install it.You can get it here
see this url: http://creandroid.blogspot.com/2013/10/del-eclipse-un-dispositivo-android.html
OR
http://developer.android.com/tools/device.html
IN thoses link is how to run aplications direct in real device
Related
in the last week, I've been trying to connect my Meizu m2 phone to my computer for debugging purposes (running an app from the android studio) without any success.
I've enabled my USB debugging mode on my device, I've connected it to be on MTP rather than PTP, and I've also taken a look at my computer's device manager, and seen that the device wasn't listed under other devices category, and honestly I couldn't tell where was he listed.
In addition, I've opened an android studio and pressed the run-app button, but my phone wasn't recognized by the android studio.
Please help me fix this issue.
Follow these steps:
Try installing PdaNet+ Windows app
http://pdanet.co/a/
Install PdaNet+ Android app on your device. Download from Play Store https://play.google.com/store/apps/details?id=com.pdanet&hl=en
Now connect your phone to PC/Laptop
Open Android Studio and check device connected or not
Hope this will be helpful...
There is many reasons and some instructions :
1- disable driver signature enforcement and connect again
2- install Universal Driver
3- install another ADB Driver
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'm running Windows 7, trying to connect my Android phone by USB so I can start developing in Eclipse. The phone is a Huawei Prism running Android version 2.3.6, and I've set it to USB debug mode. The phone's driver failed to install and I got the following error message:
Device driver software was not successfully installed
Android Adapter No driver found
I Googled around but couldn't find anything on this error. The Device Manager shows a yellow exclamation point.
I'm not sure if this is a device usage question or a development question. My goal is to get my phone to be available under Run As... in Eclipse.
Download and install Hi Suite. It's used for syncing Huawei devices, it'll have the driver you need.
http://www.huaweidevice.com/resource/mini/201105239635/hi_suite_en/
You must always install your specific phone USB Driver before being able to debug by USB.
So generally a " USB driver" search on Google does work.
I did it for you and found this page : http://www.huaweidevice.com/worldwide/downloadCenter.do?method=toDownloadFile&flay=software&softid=Mzk1MzA=
Is it the driver you tried ?
A more flexible way is to install the Adb Driver Installer: http://adbdriver.com/downloads/
Once you download it, enable USB debugging on your phone and plug it to your computer. Then, use the Adb Driver Installer to install the required driver. It works for any Android device! Hope this was helpful. :)
I recently found the right way to address this USB issue with Huawei.
Go to http://consumer.huawei.com/en/?method=toDownloadFile&flay=software&softid=Mzk1MzA=
Search: USB Driver
It will be the option HUAWEI Android Phones USB Driver
Make sure it is version v1[1].0 and file size 7.76 MB
Download zip, extract, proceed with usb download
Note: Make sure you debug and keep "stay awake" on before hooking up your device.
I am new to mac and trying to use various Android devices for development. Everything was working fine till today when Android devices simply wont show up in DDMS view in eclipse. I have tried to use Terminal to look up connected Android devices using:
~adb devices
Device list comes up empty. Emulator shows up fine in the DDMS view as well as in the device list from command line.
I have tried the following:
Disconnected the device from the computer.
Restart the computer.
Restart the device.
Connected the device.
adb kill-server, adb start-server
Nothing seems to work. Any advice will be much appreciated.
Firstly ensure that your device is connected in "Charge Only" mode, so that the sd-card is not mounted on your local system while testing.
Next, if you're on Ubunutu, as mentioned on the Android Dev website here, you need to set up the device for development to see it in the list.
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.
EDIT: So you're on a mac, then a little lookup throws this SO question up. According to the post, this was the work-around:
ADB on Mac OS X stops recognizing the attached device after installing
EasyTether driver. Use kextload/kextunload to unload from memory the
EasyTetherUSBEthernet.kext kernel extension manually. It is in
/System/Library/Extensions/
Start USB debugging(in settings>applications>developer options) on device first.
And still there is problem, try following link.
http://developer.android.com/tools/device.html
It helped me to detect my Micromax Canvas Hd
Run any project in Emulator.While running the Project you can see the device in DDMS.