How to connect my phone to Visual Studio 2013 with Xamarin? - android

I have Visual Studio 2013 with Xamarin Android and iOS. Then I have some emulators there, but I don't like them. How do I connect my phone, so that Visual Studio or Xamarin anyway detects my phone and try my application in my phone. My phone is a Sony.

If you want to work with physical android device you have to install drivers for that device.
Use adb to test if you installed drivers correctly via "adb devices" command. Once adb detects your device VisualStudio and XamarinStudio will also see your device and you will be able to debug on device.

Related

Android studio not showing connected devices

my android studio is not showing virtual devices upon running a project including my usb connected android phone and Genymotion virtual devices. I have tried Android studio versions 3.3 , 2.3 and 3.1 but still facing problem. i have installed genymotion plugin and all sdk tools but still its showing "No connected devices". Please help
It can either be an adb problem or a driver problem (for Samsung devices you have to install drivers).
You also have to set your devices in Developer mode and have USB debugging enabled on them.
You don't have the required drivers. Just search for the ADB drivers of your PC. If you have the Offline Drivers bundle just run it.
You can manually add genymotion devices to android studio using below command from terminal
adb connect 192.168.74.101:5555
Change the IP of your device as you've got in the genymotion device title
if successful, it returns:
connected to 192.168.74.101:5555

Is ther any collision between Genymotion and hardware device on Android studio?

Is there any collision between Genymotion and hardware device on Android studio?? Yesterday, I tested my android phone as a debug machine on android studio. It worked perfectly. However, today, after installing genymotion and run my project on it, Android studio couldn't detect my phone....
I followed these steps :
check whether USB debugging is enabled
check sony xperia USB drive (I installed it from websites, and reinstalled it automatically after conneting my device)
reset Android device monitor
reboot my phone
reboot my computer
plug on/off usb cable
There is no collision between Genymotion and hardware devices. But Genymotion does come with its own copy of adb which introduces potential adb client/server mismatch possibility. So just delete the adb binary from the genymotion\tools folder (you may need to kill all running adb processes first) and you should be ok.

How can I run my ionic app on a physical device (Wiko phone) on Windows?

I have a project using ionic framework, I am working in command line and I am trying to run my app on on a real device phone, a Wiko Rainbow.
I have enabled On-device Developer Options and I also have enabled USB debugging option and the target device is never recognized. I am working on Windows 7.
I have done: ionic run android
And the result:
No target specified and no devices found, deploying to emulator
Is my device phone phone compatible with ionic or am I missing sommeting ?
I manage to find the solution I had to the environnent variables path:
<my pc>\AppData\Local\Android\sdk\tools;
<my pc>\AppData\Local\Android\sdk\platform-tools;
Then I update the driver of my device thanks to this link: Android development driver for Wiko or other phone on Windows 7
A few time later my phone asked me to accept the connexion with my computer and I managed to run my application.
Then I update the driver of my device thanks to this link: Android development driver for Wiko or other phone on Windows 7
A few time later my phone asked me to accept the connexion with my computer and I managed to run my application.

adb doesn't see device online, android studio does

I have the opposite of this problem: Android Studio doesn't see device
Android studio sees the device and can deploy to/ run on device no problem.
But I'm trying to use apache cordova and cannot see the device online from the command line.
adb devices
shows my device number, and "offline".
I've tried all of the recommended steps here https://stackoverflow.com/a/9966660/210757
Any suggestions?

Can't able to run PhoneGap app in Android device

I have created a test PhoneGap Android App through CLI - I can able to run it to emulator but I can't able to run it to a device which is connected to through USB.
USB debugging is also enabled.
> adb devices
doesn't list the device but which lists the emulator.
Am I missing anything?
USB driver for the device was missing. For some of the Google devices drivers are available in sdk\extras\google\usb_driver. For other brands like HTC, Samsung and others we need to get it from them and install the same. I have downloaded driver for HTC One X from their website and installed it.
Sources:
Using hardware devices
Install USB Drivers
After installation use the below command to run the PhoneGap app
cordova run android \\if project created with cordova command
phonegap run android \\if project created with phonegap command

Categories

Resources