The time comes when the Android Studio project is ready and you want to test that application. One can test the application by running the application which can be done in two ways.
- By running the app on an Android Virtual Device(AVD), and
- By running the app on a real device
So in this article, we are going to discuss how to run the Android app on a real device. So before running the app on a real device we have to set up the real device first. Set up your device as follows:
Steps for Running the Android App on a Real Device
Step 1: In the physical android device goto Settings -> About phone and then find the Build Number Option.
Step 2: Then one needs to tap the Build Number option fast until it shows, “No need, you are already a developer” as a Toast message.
Step 3: Go back to the Settings menu and search for the USB Debugging. And open the USB Debugging option.
Step 4: Then find the USB Debugging option and enable it. One alert dialogue pops up and you need to click “OK” and make sure that the developer option should be kept “on”.
Step 5: Now open the android studio project and then connect the device to the PC using a suitable USB cable and if there are no USB drivers installed in your PC of your android device then you can google search and download and install the USB driver of the specific device model number.
Step 6: As soon as you connect the device, in the physical device, it asks to allow USB debugging for the PC you connected. Then you need to check “Always allow this computer”, and hit the “Allow” button.
Step 7: Now you can see the device name under the Running devices list in Android Studio IDE. Select your device and then click on the Run Button, and the application you developed in Android Studio will be up and running. Following is the symbol of the Run button.
- How to Publish Your Android App on Amazon App Store for Free?
- Android | Running your first Android app
- How to Keep the Device Screen On in Android?
- How to Check if the Android Device is in Dock State?
- How to Display the List of Sensors Present in an Android Device Programmatically?
- How to Find the Screen Resolution of a Device Programmatically in Android?
- Current Internet Connection Type in Real-Time Programmatically in Android
- How to make a phone call from your Android App?
- Why Kotlin will replace Java for Android App Development
- App Development for Android in 2017: Challenges and Solutions
- Android | Creating a Calendar View app
- Adding Firebase to Android App
- How to change the color of Action Bar in an Android App?
- Android App Development Fundamentals for Beginners
- Android | App to Add Two Numbers
- Android | Creating multiple Screen app
- Top Programming Languages for Android App Development
- Activity Lifecycle in Android with Demo App
- How to build a simple Calculator app using Android Studio?
- How to send an Email from your Android App?
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.