Yotaphone 2 is not visible in Eclipse - android

The Yotaphone 2 is visible as a USB-device, but not in Eclipse's DDMS "Devices". The development mode is activated on device.
Any hints would be very helpful!
TIA.

There isn't an official USB driver for the YotaPhone 2 on the YotaPhone website. So when the phone is plugged in, and USB Debugging has been enabled, the phone appears in Device Manager (Windows) as "Other Devices > Android", with the usual yellow triangle warning showing unknown driver / device.
Because of this, the phone doesn't appear when you run adb devices from the command prompt because the computer doesn't know it's an Android device, and therefore won't appear in Eclipse.
However, there is a driver on their website for the first generation YotaPhone.
Continue here at your own risk...
I modified the android_usb.inf file from the first generation YotaPhone and added the Hardware Device ID reported in Device Manager to the end of each list of supported devices in the driver file.
Telling Device Manager to use this new modified file, Device Manager then recognised my YotaPhone 2 and started to install the Android drivers found in the catalog and subfolders.
Device Manager now sees my YotaPhone 2 as: "Android USB Devices > Android Composite ADB Interface (Yota Devices USB ID)"
I haven't tested this with Eclipse (as I don't have it installed), but the phone does now appear when running adb devices from the Android SDK Platform Tools folder, and also appears (what I needed it for) in Google Chrome's Inspect Devices for mobile website testing.
I'll add a link to this driver from my Dropbox account.
Please note, this is not an official driver for the YotaPhone 2. This is using the same driver for the first generation YotaPhone. I will not be held responsible if anything happens to your YotaPhone 2!!
Please keep an eye on the YotaPhone website in the hope that an official driver gets released.

Related

Android studio does not recognize phone

I am new to android development and am trying to run a test app on my android phone. But it will not detect my device when I click "run". I have tried to go through the OEM USB driver installation but it always says "Windows has determined that the best driver for this device is already installed. There may be better drivers on Windows Update or on the device manufacturer's website." When I unclick "Include subfolders" it says "The location you specified does not contain any driver package (.INF) files." I have tried other methods through device manager of installing OEM USB driver software, both selecting the directory C:\Users\My name\AppData\Local\Android\Sdk\extras\google\usb_driver and the one where I installed the samsung usb driver. I have been attempting to follow this link: https://developer.android.com/studio/run/oem-usb which is where android studio sent me.
Lets try the most obvious one. Have you enabled usb debugging on your phone yet? When I was starting android this has happened to me. If not enable it through your phone's Settings> Developer Options> Usb Debugging.
If the Developer options is not yet shown, tap the Build Number seven times to show it.
Build number is mostly found on About> Software Information.
You need to enable USB debugging in your device too, refer this link for process https://developer.android.com/studio/debug/dev-options

Android phone is not detected in visual studio 2015

I am developing Xamarin forms app. I am not able to deploy app in nexus 6p( phone is not listed in device list ). Tried below steps, still phone is not detected.
I have installed Google USB Driver using Android SDK manager.
I have downloaded usb driver for nexus 6p and done 'Update driver software'
option in device manager under 'Portable devices' section. Device
gets displayed as 'Nexus 6p' within Portable devices section in
device manager and also seen as local drive( next to C: drive ).
Selected droid project as startup project.
But phone is not listed in visual studio device list. Any help?
Make sure the 'USB DEBUGGING' option in DEVELOPER OPTIONS remains checked on your connected Android Device.
I've lost lots of time because this item would uncheck itself for some reason between reboots/restarts and Enabling/Disabling the DEVELOPER OPTIONS.
If anyone else is still struggling with this in 2017, and your USB debugging is definitely on and it's still not appearing - I managed to fix this by turning developer options OFF then ON again from the device's settings. Also ensure that the USB option is set to:
Charging - Just charge this phone
I couldn't get any other method other than this to work. The device was then immediately detected by Visual Studio 2017 for me.
You ABD interface is not installed on your system, so first install the ABD driver from your local machine using (C:\Program Files (x86)\Android\android-sdk\extras\google\usb_driver). 
And check your device is in developer mode.
If all the setting will be good then your visual studio automatically detect your device and you can start to debug your app on your device.
If you have installed VS2017 in parallel to VS2015, you also may have a look here Android devices not showed anymore in VS2015 after installing VS2017

Visual Studio and Android Device Monitor doesn't detect any devices

I've just installed VS2015 Community with Xamarin to develop some mobile apps. The problem is, I can't achieve debugging Android apps on any device. Android Device Monitor shows empty list. I tried connecting different phones, which I know are detected on my friend's PC. I can explore their files from windows explorer, from there computer sees them.
USB Debugging on the phone is turned on.
USB connection mode is set to camera, no change at all.
I have Google USB driver installed in Android SDK manager.
I tried adb kill-server, adb start-server. Nothing changed. adb devices
shows empty list.
This is device manager while Developers options are disabled on the phone.
And here with enabled Developers options
I also tried updateing driver to google usb driver, but windows said it's up to date.
You most likely did not grant access to the device. Try to go into the developer settings on the smartphone and revoke the USB debugging authorisation. Then connect the phone to the pc and and wait for a popup on the phone which you should accept. After accepting you should see your device with adb devices.
You can also try to set the connection mode to MTP (instead of the camera PTP).
Hope it helps!
Enable the device for development
Goto: Device > Settings > Developer Options > tick USB debugging
Sometimes just restarting Visual Studio might help
Try the this:
1 - Close Visual Studio
2 - connect your device
3 - Restart visual studio with the device already connected by usb (with the device options checked)
This just happened to me. And it seems setting the startup project to your Android project fixed it.
My understanding is that the Google USB Drivers from the Android SDK Manager only work for Google Nexus devices (at least according to https://developer.android.com/studio/run/win-usb.html); annoyingly enough, to use other kinds of devices you'll probably need to download vendor-specific drivers. For example, I definitely had to download Motorola's drivers to use my Droid for debugging purposes. Unfortunately, for whatever reason Windows wasn't able to automatically detect that that's what it needed to download, so I had to download them manually.
I had the same problem, using a Samsung Galaxy A5
Google Drivers Installed
Samsung Drivers Installed
Phone shows up in file explorer
Plugging the phone in while Visual Studio was opened resulted in a pop up asking for permission. After authorising, everything worked perfectly. I didn't have to go into the developer settings on the smartphone and revoke the USB debugging authorisation.
To preface, I had connected my phone (a blackberry which had Android and full Google Play Store access) via Android Studio before so I KNOW it's possible, but when I was trying to do it with Xamarin I was having issues, Visual Studio just wouldn't recognize my device.
Found the problem appears to be the USB cable I was using. When I standardly plug in the USB, blackberry gives me the option to just charge the phone, or to enable File Transferring. But the first cable I was using always just charged the phone and didn't give me options. I tried switching the usb cable and voila, I got the prompt, and I can see the device now in the Start Debugging dropdown. So it looks like there's charge-only usb cables as well as Data cables. Be sure you're using a Data cable else it won't be able to see your Device
I had the same issue after updating Visual Studio found that in recent versions is better if you open VS in administrator mode to properly work, this should fix the problem.
I had previously revoked debug auth on my phone, but my phone didn't prompt me to allow debugging on my PC when I connected it again. Ended-up restarting my LG V30 while connected to my PC and I was prompted to allow debugging.
After that, Visual Studio 2019 version 16.10.0 adds my phone to the device list.
Running on Windows 11. Visual Studio 2022. But, I don't think the versions are really relevant here - included for completeness.
Followed all instructions re enabling USB debugging from the device. Also, the USB Drivers for my Samsung device were successfully installed on the Windows machine.
I was running the Duet Display application as I had previously installed it for use with my iOS devices. This appears to have created a conflict when connecting the Android device, as the prompt related to Duet would appear but not the prompt to allow USB debugging from the computer along with the RSA thumbprint. Once I exited the Duet app from my system tray and reconnected the Android device I got the prompt and it immediately appeared in Visual Studio 2022.
Here's some things I check when having an issue with Android device not appearing:
Enable developer mode on the device from settings
Install (e.g. to windows) the manufacturer's* developer USB drivers for the device
Ensure the Minimum Android Version in the AndroidManifest.xml is lower or equal to your device
And as always, try a different lead and restart both PC and Device!!
*Manufacturer Android USB Development driver links I know of:
Sony | Samsung | Google/Nexus | Blackberry
I have just updated from VS2015 (14.0.25402.00 Update 3) to VS2017 (15.7.5).
Amongst other things, I had to migrate a .forms app from 2.3.x to 3.1.x...
As it (according to MS) now should be possible to install also the Xamarin integration software in parallel to older versions of VS, I first (for security reasons) wanted to leave my “old” .forms app under VS2015 and .forms 2.3x and start to update to .forms 3.x with VS2017.
First, everything looked good - I was able to open my “old” .forms 2.3.x project in VS2015 (what was not possible in the earlier migration from VS2013 to VS2015).
But, I was not able to bring my two dev mobiles (both Samsung Galaxy S7) to work under VS2015 again, although, they were showed to my dev-machine (windows explorer) correct.
After wasting about a full day (doing every suggested workaround, I found on the web), I gave up und started to migrate the .forms project under VS2017.
Under VS2017 both mobiles were showed immediately without any problems and I was able to debug to the device.
So.. it seems, as the installation of VS2017 (with Xamarin integration SW) has “destroyed” something in the VS2015 installation regarding the access to the mobile devices...
I wasn't getting the USB debugging prompt on the device to trust the PC it was connected to and it wasn't appearing in the drop down list of devices in Visual Studio or ADB. Tried many things but installing the USB driver for the device (in my case Sony Xperia XA1 from: https://developer.sony.com/develop/drivers/
After installing this device driver by right-clicking the ADB Interface device in Device Manager and choosing the downloaded driver it showed the prompt to allow the PC and now works fine. This was on Windows 8.1 . I don't remember having to do the same for my Windows 10 PC.
I tried all the options but the only way I got it working is to unplug the USB cable and connect it on a different USB port.
After downloading phone specific drivers and restarting computer / restarting visual studio etc etc. What fixed it for me was from developer options
Disable USB Debugging
Enable USB Debugging
This was on a Samsung Galaxy, looks like although it was saying USB debugging was enabled it was in fact not enabled until I retriggered it using the above method.

How can I debug Visual Studio - Xamarin.Forms project on Android device?

I want to attach the Android device to Windows 8.1 trough USB
instead of using the built in emulator.
How can I do this?
Note : The device can be connected trough USB (USB drivers are installed),
and its in devaloper mode.
You first need to enable Developer Mode:
Android 4.2 and higher
Starting in Android 4.2 and higher, the Developer options is hidden by default. To make it available, go to Settings > About phone, and tap the Build number item seven times to reveal the Developer Options tab:
Xamarin's doc: Set Up Device for Development
Then you need USB drivers for your phone if you already do not have them installed, check Sony's support site.
Once your device is connected to your machine via the USB cable, debugging is just like debugging via an emulator.
Start debugging your application by pressing Cmd-Enter in Xamarin Studio on OS X or F5 in Visual Studio. When you do so, you may be prompted to choose the device to debug with.
Xamarin's doc: Debug on Device
Check that your device is showing up for Android's adb:
1) Find where Visual Studio/Xamarin (or you) installed the Android SDK:
(Click 'Tools' in the toolbar at the top, then click 'Options')
2) Copy the the path for Android SDK Location
3) Paste that into your shell (cmd or powershell) proceeded by cd (we need to change to that directory.
4) CD into the platform-tools subdirectory
5) Run adb devices
This should display something like:
List of devices attached
XXX12345 device
If all that is returned:
List of devices attached
Then the device is not been recognized and will not be available for Xamarin (or any of the Google Android tools) to deploy.
Note: Also check to ensure that your phone is in Mass Storage mode, as some default to MTP mode and that will not work as an adb device
Note: If it’s NOT appearing in the list make sure that drivers are properly installed and you’ve enabled “USB Debugging" on the phone
You need to enable USB debugging in Developer Options in your phone, plug your phone and it should be detected by Visual Studio.
You may also need to download and install USB Drivers from Sony Drivers page

Android USB Debugging on Samsung Infuse 4G

I am trying to test an Android application through the Eclipse plugin on a real device. It is a Samsung Infuse 4G. I believe I have followed all steps on the Android page for testing on devices.
First of all, I cannot figure out what the Android OS version is because it does not show up in the settings. I can see that the firmware version is 2.2.1, so I assume I am running that version of Android OS as well.
Next, when I connect the device to my computer (running Vista, 64 bit), I get prompted with three options: Kies (firmware update), Media player, and Mass storage. When I look on the Internet, I see that I am supposed to select "Charge only", but this does not appear in the options with which I am prompted. I have already set USB Debugging to true through Settings > Applications > Development.
Third, I have installed the correct driver from the Samsung site based on my model number (SGH-I997), yet when I do adb devices from my platform-tools directory (I have tried adb kill-server and adb start-server), I still do not get my device listed.
I am not very advanced in terms of working with Android and have been banging my head against the wall on how to solve this problem, so any and all help guiding me through this would be appreciated.
Thanks!
Try installing this PC Suite ...Samsung Kies http://www.samsung.com/in/support/usefulsoftware/KIES/JSP this would help you to get the exact driver for the device and don't forget to check USB Debugging option in settings.
You also need to mark "Allow Mock Locations "in Development Options in Applications settings of your phone.
Also try enabling ,use as mass storage after connecting your device.
You can check if your device is detected in device tab of DDMS in Eclipse.
Even trying all such things ,it does not work try connecting your device 2 or 3 times ,restarting eclipse and enabling USB Debugging and mock locations again

Categories

Resources