DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Integrating PostgreSQL Databases with ANF: Join this workshop to learn how to create a PostgreSQL server using Instaclustr’s managed service

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • How it Feels to Switch from Eclipse to Android Studio
  • Overview of Android Networking Tools: Receiving, Sending, Inspecting, and Mock Servers
  • How to Rectify R Package Error in Android Studio
  • Exploring the Salesforce Mobile SDK Using Android Studio

Trending

  • What Technical Skills Can You Expect To Gain From a DevOps Course Syllabus?
  • Using Open Source for Data Integration and Automated Synchronizations
  • How To Simplify Multi-Cluster Istio Service Mesh Using Admiral
  • AWS Amplify: A Comprehensive Guide
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. How to Enable USB-Debugging with Nexus 5 for Android Studio

How to Enable USB-Debugging with Nexus 5 for Android Studio

Michael Crump user avatar by
Michael Crump
·
Jan. 08, 14 · Interview
Like (0)
Save
Tweet
Share
39.81K Views

Join the DZone community and get the full member experience.

Join For Free

introduction

one of the required tools that you will need when building android apps is the ability to debug on a local device. while plugging in the device via usb gives you access to the files stored on the device, it does not enable your app to be deployed on it. let’s see what is required to deploy and test your android app on a local device. in this case, we will be working with the nexus 5.

starting with the sdk manager

you will need to begin by going to the sdk manager. since we have been using android studio so far , it is just as easy to navigate to it through the ide by going to tools->android->sdk manager.

image

this will open the following dialog prompt and from here you will need to scroll down to the very bottom and look for “ google usb driver ” as shown below.

note: if you are not using a “google” based phone, you can get the required drivers usually through the manufactures site. (ex. samsung)

image

make sure you place a checkmark in “ google usb driver ” and hit the install packages button.

installing the drivers

from the screenshot, you can tell that it places the files in the “ c:\program files (x86)\android\android-studio\sdk\extras\google\usb_driver ” folder. but that is all that it does, it does not install them.

image

if you navigate to that folder, you will need to right click on the android_winusb.inf file and install the drivers.

image

hit “ install ” on this prompt and you are done for the windows side.

getting your device set up

after the drivers are successfully installed on your pc, you will need to enable the “ developer mode ” on your nexus 5. since you are running kitkat, you can do this by going to settings -> about phone -> build number (tap the build number 7 times.)

if done successfully, you will now see the “ developer options ” at the bottom of the settings menu.

image

tap on “ developer options ” and place a checkmark in “ stay awake ” and “ usb debugging ”.

image

now connect your device to your usb port on your computer and you should get the following screen:

s111creenshot_2014-01-03-09-49-17

place a checkmark in the “ always allow from this computer ” and hit “ ok ”. you are now free to open android studio and run your app on your local device!

wrap-up

thanks for reading and if you are interested in learning how to setup your android studio development environment, then just click here .

Android Studio Android (robot) Nexus (standard)

Published at DZone with permission of Michael Crump. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • How it Feels to Switch from Eclipse to Android Studio
  • Overview of Android Networking Tools: Receiving, Sending, Inspecting, and Mock Servers
  • How to Rectify R Package Error in Android Studio
  • Exploring the Salesforce Mobile SDK Using Android Studio

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: