Unable to run my app from Android Gingerbread 2.3.9 Phone - android

I am using Android 10 Gingerbread 2.3.9 version . I have tested my app on Emulator using Eclipse it works fine . Now I want to test my app on real device. For that I have googled a lot and found that we need to Download the Google USB Driver package from SDK Manager.
I have downloaded and Update my driver from Device manager then it says Your driver is Updated Successfully. When I plug my Phone to PC in device manager I got 2 options like Spreadtrum Phone and a Android Phone I have updated the driver for Android Phone and for the Spreadtrum Phone it shows a Yellow bar near left bottom corner. I dono what it was and googled to find a driver to update it also but could not figured out. I left that part and tried in another way.
I have connected my Phone to my PC and then copy the .apk file into my SD Card and then unplug the cable from my pc. then I click on my .apk file. I was able to run. but the problem is with when
I try to debug the app from eclipse when phone is connected. I have chosen the option as "Allow me to Pick a device every time" from Run Configurations". But I am unable to see my device in my Devices list also I tried from Command prompt "adb devices" it is not listed my phone which I connected. I have Checked 'Unknown Resources" and also Checked " Use Debugging" in Developement menu option. but nothing solves my problem.
I have tried a lot of code samples and every one is doing in the same way but I could not figure out the problem.
Please friends tell me what is the problem as I am not able to debug from my eclipse I can't figure out the problem from LogCat also.
Thanks
Ganesh

Related

Android Studio - No USB devices detected

I tried to play Android Studio 2.0 with my mobile without success, what I did are:
In my mobile, Apps/gear icon/Settings/SYSTEM/{} Developer options/ Android debugging/, enable the Android Debug Bridge(adb) interface (set tick).
After plug in my mobile to my PC with a USB cable, I found A0001 in my Computer folder. Within A0001, I can see the files in my mobile.
In my PC, run Android Studio/bin/studio.exe, "Select Deployment Target" window shows with message "No USB devices or running emulators detected"
I have tried two different USB drivers but got no lucky.
Perhaps I should tell Android Studio where is my USB driver? But, how?
Can you help?
I had the same problem too and I managed to resolve it this way.
First, enable debugger mode in your android device.
Go to Device Manager from Start Menu and try to find ADB Interface with an error symbol on it. This generally happens because windows sometimes fail to load all the mobile device drives.
Next, Go to http://adbdriver.com/downloads/ and download the driver installer, unzip and run it.
Now go to Android Studio and you should find that everything is working fine.
Chill....
same here... but I hope you can avoid this problem the same way I Did.
There is an "universal ADB Driver for all Android Devices".
Yep... sounds like magic.
Just follow this link.
https://devs-lab.com/usb-adb-drivers-for-all-android-devices.html
Fun fact there is no "Step 5" in that article so I'll give you.
you have to enable "USB Depuration" from "Developer Options" connect your cellphone to computer as a "MTP storage" , after windows detected your cellphone as a "Portable Device" Execute ADBDriverInstaller.exe (that downloaded from devs-lab)
check the device list and your cellphone will say "Driver incorrectly", select your cellphone and press install.
Step 6: Once the process is completed, you’ll see something like the image that appears there (in the link).
I hope that somebody else work this
Go to Run > Edit Configurations...
Under Deployment Target Options select Show Device Chooser
Dialog from the drop-down-list
See picture for reference
After struggling with this problem for a while, I found that there are certain cables that can only charge your phone, and even though they seem to be working, they do not allow your phone to be used as a "Media Device" and therefore Android Studio does not detect it.
Go to
Tools | Android | Enable ADB Integration
Make sure it's enabled. When I upgraded to 2.X it was for some reason disabled for me and it took me hours to find it.
I just cannot beleive why it is so difficult! let me try again and please check my steps again:
I installed Android Studio 2.0, then run Computer/OS(C:)/....../Android Studio/bin/studio.exe.
The Android Studio window appeared in my working area Computer/OS2(J:)/Users/MyAccount/Desktop/.
I connected my mobile with my computer, Cpmputer/A0001/ appeared, from it, I can see the files in my mobile.
I clicked the run icon in the Android Studio window, a "Select Deployment Target" window apeared with message "No USB devices or running emulators detected".
(I got two USB ports and tried both but got the same result.)
Finally found the solution : )
1. Install device’s required driver. (for me it was motorola device
manager)
2. Download Google Usb Driver from SDK Manager
3. Open your phone's setting->developer options and turn on USB debugging.
4. connect your device to computer
5. Go to Device Manager from Start Menu and try to find if there is ADB Interface with an error symbol on it.
5.1. If yes, then right click on the ADB interface->Update driver
software->Browse my computer for driver software-> Let me pick from
a list of device drivers on my computer->Select Motorola ADB interface
5.2. Now one confirmation will pop up in your mobile, accept it
5.3. Now you should see no error mark beside the ADB interface in your
device manager
There are 3 steps to set up your phone for debugging:
1) Change your phone to developer's mode by going to Settings, About Phone, Software Info, Android Version - tap at least 7 times on the Build Number text. You will get a message saying you are now a Developer.
2) Enable USB Debugging in Settings - Developer Options. Make sure you are not connected to your USB port to see the USB Debugging option enabled, otherwise it will be disabled.
After you plug in your USB, swipe at the top of your screen, you will see USB Debugging on.
3) Make sure USB connection is set to Photo Transfer (or MTP - Transfer photos and videos). After you plug in your USB, swipe at the top of your screen, and you will see Tap to change USB options on the menu. Tap it, and select Photo Transfer option.
Perhaps your mobile manufacturer does not provide the proper driver.
Go to Device MAnager and look for: Android Composite ADB Interface. If it's there, the driver is properly installed. If not... You and I are on the same "wagon"...
I tell you: Acer? Never again.
USB debugging somehow got turned off under developer options on my Samsung. Turned it back on and it worked, but only by clicking on "debug app" instead of on "run app".
With me, when connecting the mobile to the pc, three options appeared on my mobile.
Charge this phone
Transfer Files
Transfer Images
I thought I should select "Transfer Files", but it dd not work
But it only when works I choose "Charge this phone"
Few ways to resolve this problem.
Case 1: Install PdaNet+ in your system. (worked for me).
Case 2: Enable the USB debugging option in your mobile. Setting > developer > Check "USB Debugging".
Case 3: Change from MTP to PTP.(sometimes vise versa works).
Question is Your development sdk no mobile version android sdk Platform.
For example, my android phone system is 6.0, i need download sdk Platform 6.0.
First, try to revoke the usb sessions in the developer options, then try downloading an oem usb driver
If then doesn’t help you can try opening the device manager on windows, right click on your phone, select uninstall. This worked for me if I had the same issue.
I couldn't find my android phone or any USB device I connect to my windows laptop on the hidden icons. Well, my mouse and phone could charge but I can't seem to see my phone in the File Explorer option.
I prefer running Apps using my phone rather than emulator in Android Studio and yet I couldn't see my phone when I connect using the USB.
This helped me solve all my problems after several hours of searching for solution.
Download Universal ADB Drivers - One size fits all Windows Drivers for Android Debug Bridge
Please use this link: https://adb.clockworkmod.com/
I hope this works for you like magic!
I can see all the devices I connect using the USB cable and my mouse receiver.

Android Studio does not show my device while running the project

When i tried to run my project in android studio it does not show any device
But i had correctly installed the adb interface driver and it also show in my device manager(Android Device -> Android Composite ADB Interface ).
My device is LAVA iris X1 (kitkat 4.4.2)
Usb debugging was on
usb connection was switched to PTP (Camera)
I had also tried certain posts but non of them works
Please provide a helpful solution.
Thanks in advance.
launch 2 devices at the same time, sometimes the firts device launched is not showing probably for some bug but the second is recognized
Did you download the proper drivers for your device? I also find it useful to have the device dialog come up. If you go to Run Configurations you can select an option which will show the device chooser every time. Sometimes I have to plug and unplug my phone once or twice for it to be recognized. This screens help me debug this potential issue. Other then that check the drivers for the device if on Windows.

ADB doesn't list my Device

I'm trying to push an app from eclipse to my phone but adb doesn't work. It doesn't see my phone when I write 'adb devices'. First I thought it could be a problem of Cyanogen Unofficial Android 5.0, so I reverted to 4.4, but it doesnt work either. I followed an answer on this this question 'adb doesn't show nexus 5 device' by installing the driver but the device manager tells me, that the driver isn't installed (Code 28). When I try to install it manually it doesn't work, neither uninstalling works.
I had same problem. Fixed it by doing to device manager
1. Find the ADB driver. If it shows the warning sign then click on update driver.
2. Choose to update the file locally yourself.
3. Browse the file. It always shows a SAMSUNG COMPOSITE DRIVER. Select that option and let it happen.
Don't worry if your device is not Samsung. The same driver works for almost all devices. Mine is a YU Yureka with CM12.
Hope this helped you.
Delete the device from Device Manager.
Rescan for hardware changes.
List item will show up with "Unknown driver" status.
Click on "Update Driver" and select /extras/google/usb_driver
Device Manager will find the driver and warn you about installing it. Select "Yes." This time the device got installed properly.
[source] Android device does not show up in adb list
Try this tool when your device is connected.
--> http://adbdriver.com/
Normally it should list your device and notice it has a faulty driver.
Hit the install button and it wil replace the faulty one with a working one.
[Source] Personal Experience

Eclipse show unknown device

I am using HCL ME U1 for testing my android application. But when i am trying to run my app on my device, it show unknown device and failed to install on device.
I follow this question with accepted answer but didn't find any device in device manager.
First time, when i connect device to my computer it show "Device driver successfully installed".
I am using windows 7 32 bit OS.
I didn't find any android device in device manager.
When i use cmd to find out device then it show in list.
I also enable USB Debugging and Unknown source in my hcl tablet.
Please give me some hint or reference.
Thanks in Advance.
Instead of restarting the phone, go to task manager(windows) and kill the adb.exe process. After 10-15 secs, it will restart again by itself. It should detect your device then.
Once I encountered this issue and none of the matters could solve my question except a simple trick. I turned off the phone, ejected the SD card, cleaned it with sth and then put it back into the phone.
After turning on the phone, everything was alright. You have other options too:
Connecting your phone to pc while phone is connected to internet (to update its usb drive)
Updating your ADB driver from device manager (while phone is connected to pc)
Some USB cables don't have debug ability. Be sure of using a proper one.
I recently solved a similar problem in Ubuntu by updating my Android SDK. A year ago, I also remember I had great difficulty getting a different phone to connect to Windows. I remember that, despite receiving the "Device driver successfully installed" message, I had to manually install the usb driver from the SDK Tools Manager.
You might also try "adb devices" to see if your device shows up there. I would expect it to be in the Windows device manager of adb can see it. You mentioned there were no Android devices in Device Manager: check for other unkown devices it might show up as. I believe mine showed up as USB Mass Storage before updating the drivers. An alternate guide to doing so can be found here.

Android device configuration problem

I want to test my applications on LG P500 device. But emulator is not detecting the device. When i try to add USB driver which is there in SDK, it is not accepting . Please tel me how to configure Device for testing.
I struggled long and hard to get the correct USB driver installed for my P500. I ended up installing a few different things, and over the course of two or three reboots I managed to get it going.
I'm pretty sure the actual setup details you need can be found here (Note, this is the New Zealand section of the LG website - which is where I am, but it should work globally).
If you follow that, you should be able to install the USB driver. Once done, go to SETTINGS-APPLICATIONS-DEVELOPMENT on the phone and turn on USB Debugging and Stay Awake - these help when you are using the phone to test code.
You can test that its actually working by going into the Android SDK folder shown below and typing adb devices (in the directory shown, remove the (x86) if you are using 32-bit windows) - mine shows up as follows:
c:\Program Files(x86)\Android\android-sdk-windows\platform-tools\adb devices
List of devices attached
80A354043044674101 device
I hope that helps - let me know if you are still having problems.
Change your phone settings to allow USB Debugging. Home->Settings->Applications->Development->USB Debugging. Then connect your phone and run ddms to see if your phone shows up.The emulator will not show your phone, but it should be recognized in DDMS
If some one trying to work on LG P500, Please follow the steps.
1> Connect your Phone to system.
2> Enable settings>SD Card & phone Storage > Mass storage only.
3> Now it will open the SD card. Go to PC suit dir, Install the application whc in turn contain USB drivers. After installation has completed desable mass storage only.
4> Change your phone settings to allow USB Debugging. Home->Settings->Applications->Development->USB Debugging as Apesa ans Steve suggested
(Even i hve installed LGUSBModemDriver_Eng_WHQL_Ver_4.9.4_All.exe )Please let me knw wht exactly this driver will do . )

Categories

Resources