Connecting Samsung S7 to AndroidStudio - android

I like to start my app directly on Samsung S7 with AndroidStudio.
I have already enabled debugging mode in the developer option by tapping 7 times on build number, but still I don't see the device when starting the app and getting the "Select Deployment Target" Dialog.
What else do I have to do ?

In developer options at bottom of setings menu, ensure USB debugging is ticked. Then start again, restart windows and S7 to make sure and try again. With one of my devices, tapping seven times enabled developer mode, but the debugging options was not selected by default and had to be manually selected from developer options after they were enabled.

Install necessary drivers from this site. Then connect your device with debugging enabled, your device will prompt a dialog for permission, click ok.

If you are using windows, i have sometimes needed to "reconnect" the device. Particularly when switching between the device and emulator.
To do that, find the folder in the sdk that you have downloaded for adb.exe
In that folder, start up a command prompt and try "adb reconnect". This usually works for me. Sometimes, I have also had to revoke the debugging permissions and then reenable them from the developer settings on the phone...
Note that this S7 Is the most problematic phone I have with this issue. I have about 6 other development phones, and this is the worst for connection issues. Otherwise, I think the phone is great.

Related

Why android studio cant detect my phone for debugging?

Ive get started learning android development and I have this problem that when I connect my phone(samsung s4) for debugging its wont appear on the 'Select Deployment Target' dialog box. I hope you can help me fix this problem.
Question is:
How to debug with external device?
There are several possible solutions
first you should enable usb debugging
Solution 1
go to
About device=>tap 7 times on build number=>you are now a developer
go to
settings => developer options => enable usb debugging
Solution 2
download samsung driver for samsung galaxy phones
and try again
Did you remember to activate USB debugging?
To activate it, open settings -> about device(can be about phone or about tablet) -> tap "Build number" a few times until a toast comes up that says "You are now a developer".
You will get toasts saying "You are now X steps away from being a developer".
WHen it reaches 0, you will not see that message, you will see "You are now a developer" and can access the developer settings.
From there, go into the developer settings, find and activate USB debugging.
-- ALSO SEE --
this
this(youtube)
UPDATE
If you have activated USB debugging AND it still doesn't show up, see if the drivers are installed. When I got my S6 and tried to connect it, it wouldn't show up anywhere. For me, the solution was to open WIndows Update and download the driver that now showed up there.
Also see this

Android Studio Device Offline While Plugged In

I have tried EVERYTHING I could find on this but still no solution.
I have a Samsung s6 edge Plus 32 GB. I am trying to deploy an app on Android Studio but it always shows the device as offline. What I have tried
Unplugging and plugging back
Restarting device
Enabling debugging on device
Shuffled and tried different transfer protocols
Installing and Uninstalling Samsung drivers
Checking 'Enable ADB integration' under Tools -- Android
Checking android studio & driver updates
Any help will be greatly appreciated
This happens sometime, even when USB Debugging is on. Try this:
Go to Settings->Developer Options
Search for Revoke USB Debugging Devices
Revoke all existing devices
Disable USB Debugging and enable it
Now connect your phone to system with USB cable
Wait, and a dialog will appear on your phone, for permission to allow for USB Debugging. Click on checkbox and press Allow.
Now the device should appear online in Android Studio.
If problem still persists, then problem is with your phone drivers installed on system.
This happens to me regularly (I use multiple devices) and one of these two things always fixes it:
Make sure your device has "only charge" selected in the dropdown menu entry that appears when you connect your phone. Instead select "transfer files".
Disable and enable usb debugging.
Change your device cable or change your connection USB port on PC. I think this problem is hardware problem. Try other hardware problem possibilities.

Android Studio 2.1.1: "no usb devices or running emulators detected"

Suddenly my Android Studio stopped detecting all my devices, none of them is working. It happen from one execution to another. I've changed a few lines of code (1 min maybe?), hit run (instant run) and then I missed all my devices.
I'm using a Mac and as devices: Nexus 5x, Galaxy s6 and Oneplus One. What can be happening? I've checked previous questions here and tried all this:
Run configurations: no matter if I chose usb device or show the window, it does not work.
Tools > Android > Enable ADB integration: didn't help
Command line adb devices does not detect any either.
I've revoked and granted again USB authorizations. Still not working.
I've tried other apps I have, none work.
Restarted phones
Restarted android studio
Restarted computer
(Note: if I start an emulator it works, but I'd prefer to use physical device since I have to scan real barcodes)
Thanks a lot in advance.
On Lollipop 5.1
Go to About Phone
Click 7 times on Build Number. Now Developer options are enabled
Go back and Click Developer options
Enable USB debugging under Debugging.
Well, I've fixed. The problem in case any faces the same was a Stetho (http://facebook.github.io/stetho/) tab in chrome, the one you open by typing: chrome://inspect/#devices not sure about the reason because it's been open for 2 days now, but it was the cause, once I closed it, it worked.
Found this unaccepted answer here: macbook adb cannot open interface That for sure should be accepted.
EDIT: I've been able to replicate the problem. It happens when you have the devices tab open and try to run a second app that has stetho configured.
It happens if your device drivers not installed Please do this.
In Case of PC
Right click my computer select manage select device manager from left panel if your phone drivers not installed there will be yellow alert on driver right click on it select update driver software then select search automatically for update driver software.
Other
Please install the missing drivers of your phone.
I had the same problem . What I've done to solve it going to Setting >> Additional Setting >> Developer Option
Now select:
Developer option on
USB debugging on
Install via USB on
USB setting security on
Verify apps over USB
OK, what finally worked for me was to go into Settings\Developer options\Select USB Configuration and change it to PTP or MIDI....either one of those worked for me and all of the sudden my phone showed up and I was able to see and run my test app on my android phone.
This woorked for me
Go To Settings
Developer Options
Enable USB Debugging
Enable Verify Apps over USB
Select USB Configuration: Choose MIDI
I hope it also works for you

Why my Galaxy Nexus is not detected by Eclipse in my android project?

I have Galaxy Nexus Android version : 4.2.1
I downloaded this project: Color Histograms from here:
http://www.stanford.edu/class/ee368/Android/index.html
When i connect my device to my pc i hear and see that it was connected and i can browse the files in my device no problems.
Connected as Media device (MTP)
But when i click on the eclipse menu Run > Run As > (none applicable)
So i did Run > Run > No compatible targets were found...I select NO then a new window pop up:
Android Device Chooser
Choose a running Android device but it's empty.
Why it's not detecting my device ?
go to Settings - Developer options and enable USB debugging.
if it's already checked, rebooting the device might help (i had this bug a few times)
You need to enable Developer Settings inside the settings
Enabling then on android 4.2 and higher is different.
I'm using a dutch device so bare in mind bad menu-translations.
Go to Settings -> About this phone.
Then tab multiple times on Build-version (about 7 or 8 times, if I remember correctly)
Then you unlock the Developer Settings.
Go inside them and tick the USB-Debugging option -> reconnect device.
Hope this helps
EDIT: restarting the ADB service might help also: use adb kill-server to stop the server and adb start-server to start it again
Since Android 4.2, developer options is hidden.
To enable the developer options, go to Settings > About > then find your Build Number ("JOP40C") and tap it 7 times.
This will enable developer options. Then go what sergio said
goto Settings > Developer Options > Enable USB Debugging
Refs:
My Brain
http://www.xda-developers.com/android/enable-developer-options-in-android-4-2-jelly-bean/
http://forum.xda-developers.com/showthread.php?t=1989777
Have you enabled USB Debugging ?
To enable Nexus USB Debugging Mode
Go to Settings.
Select Developer options.
Turn on it.
Select OK to allow development settings.
Then tick USB debugging ~ Debug mode when USB is connected.
Select OK to allow USB debugging.
That’s all.
If on version > 4.2 then do as Blundell says(in the answers below)
You might need to install drivers as well depending on the operating system
Hold your phone & once your mobile is connect. An alert is given to you, open it you will find a button that take your permission to access. press Connect USB Storage button To connect.
To assure the connection: Go to your Computer folder & you will be able to see your mobile as a removable disk.
Enable USB Debugging on you device
If it's a Samsung device, install SAMSUNG_USB_Driver_for_Mobile_Phones then restart your dev environment
Plug it in, try the debugger.
Watch our for an alert on your device. You need to give your PC permission.
I tried all of the above, nothing worked. Then I noticed, I had never seen that confirmation dialogue "Do you want to allow this computer access etc." that was supposed to come up on first connect.
So I decided to do Settings > Developer options > Revoke USB debugging authorizations. After restarting and reconnecting everything, I got the dialogue and now the phone is recognized.
(Done on Android 4.3 )

Why won't Eclipse/adb detect my Samsung Galaxy Tab device on my Mac?

I've connected my Samsung Galaxy Tab device to my Mac. Yes, I've turned on debugging. When I go to run my application to test on the device the device is not listed on the Android Device Chooser menu. Running the ./adb devices shows no results.
NOTE: Posting this question for others to find. When looking for the solution earlier all I was able to locate were answers to broken links to device driver downloads for Windows.
Make sure you uncheck
Settings > Applications > Unknown Sources (Allow installation of non-Market applications)
Turn on USB Debugging inside Settings > Applications > Developers Settings
If you're trying to connect to a Mac, I had this issue with a Samsung Galaxy Tab 10.1 running Android 4.3. To enable developer options, open the Settings app, tap on "About device" under the "General" tab and then tap on the "Build number" repeatedly (it's grayed out but you can tap on it anyway). A small pop-up will appear showing the amount of additional taps you need to do to turn on these options.
Once enabled, just turn on USB Debugging and it'll show up in Eclipse just fine.
I had this problem on my Mac and after 30 minutes tried switching USB ports and it finally started working on the second port.
I fixed it by reboot the device (Samsung Galaxy Tab2 7.0)
Update your driver for samsung. It can be found here: http://developer.samsung.com/android/tools-sdks/Samsung-Andorid-USB-Driver-for-Windows
Connecting your phone after development mode is on, and USB debugging is on.
At connecting to the PC the phone asks to trust this location. Finally.
This fixed my problem while all other tips were incomplete.
It does not answer your question of how to get ADB to see the device - I could not get that working. But what I did to install an APK I needed to test was to put it in Dropbox on my computer, then install it from there on the device.
Connect your device via USB hub instead of directly connecting to one of the usb ports on MAC. It worked that way for me. Please give a try.
There's also a pop-up that comes up at times requesting the currently connected computer to have access to your device(not to be confused with the Linux not supported pop-up; it lies ; ] ). I continued to receive Target:Unknown in Eclipse until I managed to catch it and accept. This is on a Samsung Note 8", which I believe is registered as a Tab 10.1 in my Arch Linux udev rules.
It may also happen that USB debugging is not checked on your device. Please go to developper options in your device and check it is enabled.
By the way, for devices with android Jelly Beam (4.2) and later versions, you will find out that this option is hidden. To activate it, click 7 times on the compilation number, and the option will be activated.
Tried everything, nothing helped. Including
USB debugging enabled
MTP/PTP
ADB restarted
Device/PC restarted
Tried Samsung's USB driver
By tricking/modifying driver installer, installed Google OEM Usb drivers for Galaxy Tab.
All software up-to-date
The only thing that helped is installing Kies3 + setting PTP on device, instantly authorization pops out in device. Everything OK now.
Kies3 download here: http://www.samsung.com/uk/support/usefulsoftware/KIES/
Enable USB Debugging mode solve the problem!
For those who don't know how to enable it (it's very hidden on Android 4.3 onward), see this.
In my case, this solved the problem:
unchecked the Settings->Security->Unknown Sources,
clicked on the upper left corner and changed USB mode from MTP to PTP,
unplugged/plugged the device, and
clicked OK on the USB debugging prompt.
Had this problem last year, never solved it. Again, after googling high and low, I could not find a cure for the USB debugging flakiness. Now for the good news:
1) Root your device. 2) Install adbWireless widget from Play (I am in no way associated with the author).
You are now good to go. After starting adbWireless and following its directions, you can now debug through adb wirelessly to your device, in my case, the original 7" Galaxy Tab.

Categories

Resources