How to emulate applications on a physical device - Codiclick

share

How to emulate apps on a physical device

Adverts

 

 

 

In the previous entry we saw how to create and configure a virtual device to emulate our applications, this time we will see how to link our physical device to test our android projects.

It has already been mentioned that Android Studio includes its own emulators, which we must download and configure, although this is not the only alternative, since we can include third-party emulators or simply run the application on physical devices, this last alternative is the ideal one because we have checked directly on the device and the consumption of resources depends on it, while if we use emulators, we must assign resources from the pc to the emulator, since they behave like virtual machines that require a high consumption of RAM memory, however it is good to have these two alternatives.

 

Previously, to perform the process with a physical device, drivers had to be downloaded beforehand depending on the device. Currently, this process is no longer necessary, but if it is necessary, you can follow the guide from the official developer page, let's see the process directly.

 

Binding the physical device.

 

To carry out this process on the physical device, the example will be done with a Xiaomi MI8 cell phone, although this applies to any device.

 

Initially we can enter the device and check the version of the system, in this case we see that we have a version of android 9, from any device, be it a tablet or cell phone, we can click several times on the version and an equivalent animation will be displayed as shown in the image for android 9 or PIE.

Then we can go back to the phone options and in my case I enter the MIUI version or on other devices it must say the build number, from here we touch 5 to activate the developer options, if we pass the touches it will indicate a message of which is no longer needed because we are already programmers.

 

Then we enter the additional settings of the device and see the developer options at the bottom and when entering we must enable USB debugging and installation via USB so that the cell phone is recognized by our tool and thus allow the application to be installed directly.

 

After doing this, we can connect our mobile to the PC and if it is the first time, a message may appear on the device asking us to authorize USB debugging, we can allow it and that's it.


 

After that, we see how our device is recognized and we can already run the application.

If we launch it, we will see that the cell phone recognizes that it is trying to install an application via USB, we click on Install and that's it!!!


With that we already have our device linked to run the first project!

It may also interest you.

 



Is there anything you want to add or comment about this entry? feel free to do….And if you liked it... I invite you to share Y Subscribe by clicking on the “Join this site” button to hear more posts like this one 😉