USB Debugging option greyed out
Finally figured out the solution to the problem, with the help of this post.
When you connect your phone to your PC, using the USB cable, select the mode as PC Software
.
Now you should be able to enable USB Debugging.
USB Debugging in Android Studio 3.1.3
The instructions you followed refers to the Android device, so the actions:
On the device, open the Settings app, select Developer options, and then enable USB debugging.
needs to be done on your phone, not on the Android Studio.
Indeed, if you don't see any Developer options in your settings, just tap Build number 7 times.
More info at:
https://developer.android.com/studio/debug/dev-options
Any way to go directly to the Enable Usb Debugging page in Android?
No, it is not possible I'm afraid.
Here is a list of all Settings that can be opened with an Intent, note that USB debugging is not among them.
The closest you can get is opening up development settings (as the 2nd half of your question asked) with ACTION_APPLICATION_DEVELOPMENT_SETTINGS
(more info), which does the following:
Activity Action: Show settings to allow configuration of application development-related settings.
How to enable USB debugging in Android?
Toggle on "USB Debugging" in the "Developer Options" area of Settings.
If you do not see "Developer Options", go into "About device" in Settings and tap on the "Build number" entry seven times, which will unlock "Developer Options".
As documented on Android Developers: https://developer.android.com/training/basics/firstapp/running-app.html
Android Emulator Allow USB Debugging dialog close right after showing
I had the same issue. I tried to click "Allow" in time, but it was too fast on my PC. However, I noticed that after a cold boot this popup pops and doesn't hide for some time (may be due to load lag), so I managed to click it this way.
If someone still has this problem and the goal is to upload some file or apk, better upload it to google drive and download it by link in the emulator.
Related Topics
The Process of the Service Is Killed After the Application Is Removed from the Application Tray
Disable Sound from Notificationchannel
How to Crop the Parsed Image in Android
Work Around Canvas.Clippath() That Is Not Supported in Android Any More
Filter Listview with Arrayadapter
Upload Video to Facebook in Android
Cannot Launch Avd in Emulator:Qt Library Not Found
Navigationview Menu Items with Counter on the Right
How to Know That My Webview Is Loaded 100%
How to Wrap the Height of a Viewpager to the Height of Its Current Fragment
Getintent() Extras Always Null
How to Hide System Navigation Bar in Tablets
How to Handle Outofmemoryerror
Android - How to Enable Autostart Option Programmatically in Xiaomi Devices