What is the difference between running the program on the emulator and on a physical device?

Asked

Viewed 82 times

0

I’m starting studies on android development with Android Studio and would like to know if it is possible to create applications just running the code on a physical device or if it is necessary to emulate other devices to prevent errors and etc.

The emulator of Android Studio runs with difficulty on my machine, so I need to know if it is essential for application development or if there are other alternatives.

1 answer

0


You never make a mistake if you prefer to run your app always on the physical device.

Android emulators are slow and do not implement all devices. For example, simulate GPS, camera, sensors... all this does not work or does not work realistically in the emulator.

The situation is not much different in iOS, except that emulators are faster.

Emulators are for unit testing, and to see what happens to your program when running on a specific version of Android. Personally I use to test the app in very old versions, or so new that no phone still has.

To test your apps, try using a fairly recent device that is receiving updates (and run Android 11). If you need to support a range of Android versions, also get an older device, type Android 7.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.