How to debug Android apps on Samsung gts5360 device via Windows 7 - android

I want to debug Android app on Samsung gts5360 device via Windows 7. USB debugging on Android side is enabled, but device is not showing in Eclipse when connected. I had no such problems in Ubuntu.
So please suggest me how to debug apps on Android device via Window 7?

Try resetting the adb. I usually run Dalvik Debug Monitor in the background when using connected devices, so I can verify that the AVD and/or devices really are registered. You'll find this tool in C:\Program Files (x86)\android-sdk\tools or wherever you have your Android SDK installed. It's called ddms.exe.
If you don't see your device there, go to the menu Actions --> Reset asb. Now, all AVDs and devices should popup, and it will be available in Eclipse. At least, this works for me.

Related

No USB devices or running emulator detected

I am very new to Android development. I am trying to create and run an app from tutorial - https://developer.android.com/training/basics/firstapp/creating-project.html
But while running app it is showing me "No USB devices or running emulator detected" in Select deployment target dialog.
Background and what I tried:
I am using Lenovo K4 note Vibe.
Android version 5.1
I have enabled USB Debugging from my phone also checked "Enable OEM unlock"
I have selected USB "MTP" as connection mode when I connected my phone to machine.
I am using windows 7 and Android studio version 2.3.2
My device appears in "Device Manager" of my system i.e. It is installed properly.
When I connect my phone to my system it shows AutoPlay dialog, asking to run "Run Lenovo_suite.exe", I tried to see if my deice appears in Studio when I allow to run that app, but still no luck
I also tried by checking and unchecking "Enable ADB Integration" from Android studio, still no luck
I have already installed Android SDK for verion 5.1
I have also tried installing "Google USB driver".
I also tried connecting my device to all of my machine port
I am tried using Emulator, but it is really very slow on my machine, it takes around 2-3 hours just to boot. So, I am using my phone.
Your assistance in this matter is greatly appreciated
this problem just happen when your USB connection mode is not work in debug mode, Like:
File Transfer Or MIDI device
The Charging Only is Work in android 5 and above
GoodLuck
a addition to above answer i think if you try to debug it , you will get better result since android if had problem throw a error that says restart adb.exe ,
another thing whats your hardware config ?
and have you tried genymotion , i prefer it over android virtual device , working with a real device is better , but i prefer when to concentrate on monitor have device on it ;)
As per My experience many device not connect
So you need to try this Windows Software to detected your android phone
Install it on your windows system PDANET+
Thanks for your support guys. After 2 hours of struggle I found below:
When I connect my device to the machine, it shows me a AutoRun dialog to Run Lenovo_suite.exe(Which I mentioned in my question), but instead of auto running, I explored that newly created lenovo drive, which had 2-3 setup exe's(usb drivers and magicPlus), I installed both and restarted my machine. When I run MagicPlus software, it helped me to Authorize USB debugging with some kind of fingerprints. And now my device appeared in studio.

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 to stop Android Application under Eclipse in Mac OS X?

I have run android application on my Device. I want to stop this running application using DDMS.
On windows, I can see threads which are running on Android Device. like following image
But on Mac OS X, I am missing such option, How can I get these ?
I see that it's not the same device (4.1.2 vs 4.3) . Did you enable your device as debuggable?
It's in the developer's options and then check USB Debug option.
EDIT: See here how the security of USB debugging was improved since Android 4.2.2
I think when you will select a device then after only it will enable that option. From your screenshots it is clearly seen that you have selected a device in Windows Platform while in Mac you haven't select it.

Android: no running Device

I want to run my Android Project iwrote with emulators on my Android Device. The Device is Connected on an USB-Port. When I start the "Android Device Chooser" nothing happens. No running device in the "Choose a running Android Device"-Table is displayed.
I tried to reboot the system(PC and Smartphone) while connecting. I tried every USB mode. I tried another Device( G1 and HTC Desire). Unknown Source is always true.
I tried another Eclipse-Version(64 and 32 bit), tried another SDK(64 and 32 bit) and reinstalled the android sdk.
I still can't see any device. Everything worked fine on my old 32 bit system. Now i have to work with my 64 bit lenovo. (both windows 7)
somebody got another idea?
Thank you.
Fabian
See this link for detailed info: http://developer.android.com/guide/developing/device.html#setting-up
In short, you have to:
Mark your app as debuggable (in Manifest)
Allow USB debug on your device (Settings->Application)
And, if developing in Windows, download drivers.
Try command line "adb devices" to see if your phone is detected ok. Except limited number of phones supported by Android by default, manufacturer-supplied setup needs to be used to start usb mode. In my case, Vodafone 845, setup was contained in phone storage. So after phone was detected as normal usb storage, I located that utility and simply ran it. Then it started to be detected as android phone.
The easiest way to this dilema i found here. If you are on windows,
Make sure you have install the google usb driver
Ensure USB Debugging is enabled.
download the adbdriver setup from http://adbdriver.com/downloads/
just follow the wizard and install, automatically it should see your device or you try restarting android studio.
Enable USB Debugging :
Setting - About Phone - Tap Build Number 5 times.
Then go to : Setting - Developer Options - Turn On Usb Debugging.
Download and install Wondershare Mobile Go / Snappea. That program will download and install your android device.
If this popup appears, click allow.

Categories

Resources