0% found this document useful (0 votes)
23 views7 pages

Connect Android Studio to Physical Device

To test an Android application on a physical device: 1. Install the appropriate USB drivers for the device on the development computer. 2. Enable USB debugging on the Android device in the settings menu. 3. Connect the Android device to the development computer via USB. The application can then be run on the physical device by selecting it from the run configurations in Android Studio or by manually installing the APK file on the device.

Uploaded by

Faiz Karmani
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views7 pages

Connect Android Studio to Physical Device

To test an Android application on a physical device: 1. Install the appropriate USB drivers for the device on the development computer. 2. Enable USB debugging on the Android device in the settings menu. 3. Connect the Android device to the development computer via USB. The application can then be run on the physical device by selecting it from the run configurations in Android Studio or by manually installing the APK file on the device.

Uploaded by

Faiz Karmani
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Testing Android studio

application on a physical Android


device
1. To transfer and launch the application on physical Android Device you
first have to install the appropriate USB drivers on the operating system
of your PC. The USB drivers to install will depend on the model of
Android device. For example, if you have a LG device, then it will be
necessary to install and configure the LG USB Driver package on your
operating system.
• Instructions to install a USB driver can be found at the following web page :
[Link]
2. Then the device must first be configured to allow the connection. On
phone and tablet devices running Android 6.0 or newer version, the
steps to achieve this are as follows:
• Open the Settings app on the device and select the About phone option.
• On the About screen, scroll down to the Build number field and tap on it seven times
until a message appears indicating that the developer mode has been enabled
3. At this point, the device is configured to accept debugging connections
from adb on the development system
4. Connect your Android phone to the PC
First method to run an Android application on
a physical device

• The first method to run an


Android application on physical
device is to run the application,
simply by clicking on the run
button represented by a green
triangle located in the Android
Studio toolbar at the top of the
main Window
First method to run an Android application on
a physical device
• Then you have the choice
between running the application
on the emulator and the physical
device.
• Select the physical device and
click on OK.
• The application will be launched
on your smart phone.
Second method to run an Android application
on a physical device
• Another way to launch the application on a smartphone is to install
.apk file manually on the smartphone

• Connect the smartphone to your PC and go to the folder


c:\users\...\AndroidStudioProjects\MyFirstApp\app\build
\outputs\apk\.

• Copy the file [Link] to the folder named Download of


your smartphone
Second method to run an Android application
on a physical device
• Before running the apk file, you need to tell your smartphone that it
can install any apps outside the Play Store

• You can find this switch in Parameters Setting ->


Security ->Unknown Sources

• Once this enabled, locate the apk file with your file browser and
open it to launch the application
Signing and Preparing an Android Application
for Release
• Once the development work on an Android application is complete
and it has been tested on a wide range of Android devices, the next
step is to prepare the application for submission to the App Store.
• Before the submission to the App Store the application must be
packaged for release and signed with a private key.
• The following web page explains how signing the application :
[Link]
• The following web page explains how preparing the application for
release :
[Link]

You might also like