Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android emulator - simulate particular device

I'm trying to simulate LG K4 2017:

https://www.gsmarena.com/lg_k4_(2017)-8489.php

Size 5.0 inches, 69.6 cm2 (~66.3% screen-to-body ratio)

Resolution 480 x 854 pixels, 16:9 ratio (~195 ppi density)

I'm trying to do that in AVD manager, I set the same screen size and resolution, however app looks very different (on the real device everything is much bigger, in other words I can see less content).

Here's how the settings look like:

enter image description here

I think screen size should be normal, but there's no way to change that - it's automatically changing according to screen size and resolution.

Is it possible to somehow change to simulate this device?

like image 229
Makalele Avatar asked Jan 14 '19 18:01

Makalele


People also ask

How do I emulate a specific Android phone?

In the Android SDK Manager, select Tools | Manage AVDs. In the Android Virtual Device Manager, click the New button to create a new virtual device. In the Create new Android Virtual Device (AVD) dialog box, select an Android device to emulate, and enter the details describing the Android device you want to emulate.

How do I simulate an app on Android?

Run your app on the emulator After you have created an Android Virtual Device (AVD), you can start the Android Emulator and run an app in your project: In the toolbar, select the AVD that you want to run your app on from the target device drop-down menu. Click Run.

What is virtual device in Android?

The Android Virtual Device (AVD) is an emulator configuration that lets you model an actual device by defining hardware and software options to be emulated by the Android Emulator. It comes as an optional download when you install Android Studio.


1 Answers

Perhaps the text on the screenshot is larger because the display size settings on the LG K4 were set to something larger than default. I've run into this error a few times, where an application would look completely different when viewed on different phones of the same size because of this setting.

As far as I know, it is not possible to simulate exact display sizes with the Android Emulator. Also, if it were possible, it would not guarantee looking the same as the actual phone as most manufacturers have custom settings and skins which cannot be replicated by the emulator.

like image 60
B. Plüster Avatar answered Sep 19 '22 10:09

B. Plüster