I have built android ICS(4.0.3) for virtualBox. And it runs well with default resolution 800x600.
However, when I change the virtualbox resolution to non-default ones, say 1280x800.
Then I get error "Unfornately, System UI has stopped". And the system hangs there. In addition, I cannot even connect to this device to see the logs when resolution changes.
Would you please give me some help? Thanks.
BTW,
The way I change resolution is suggested by Buildroid ----
First add a “custom video mode” to .vbox configuration file : Add the line
< ExtraDataItem name=”CustomVideoMode1″ value=”1280x800x16″/>
just after the already present “ExtraDataItem” entries.
Modify the linux kernel options to replace the existing vga=xxx by a vga=ask
Then, choose the expected resolution.
Maybe you find solution in this wiki article: Android Emulation.
Related
I study about DropBoxManager of Android platform for crash tracking and debugging my app.
I referred this article. https://developer.android.com/reference/android/os/DropBoxManager
It describes that "The queue is size bounded and will drop old data if the enqueued data exceeds the maximum size." But I cannot find how big it is. What is the maximum size of DropBoxManager? If it is depends on devices, I would like to know Samsung flagship devices - Galaxy S20, Galaxy Note 20, etc.
Please help me. I tried to find the information, but it is very how to find.
Thank you
I don't know the answer, here's what I've discovered so far
According to https://android.stackexchange.com/a/218147/31304 it's possible to set the value, quote:
"settings put global dropbox_max_files 9
If you are rooted (or via adb shell - thanks #Irfan Latif) you can issue the command above to limit dropbox files in that dir to 9 (or any other number you prefer). You will only see only latest n events, older get overwritten."
We can list the global settings, however I cannot see any mention of settings for dropbox.
adb shell settings list global
There's an old version of the Java code online e.g. https://code.yawk.at/android/android-9.0.0_r35/android/os/DropBoxManager.java however that doesn't include the implementation details.
https://gitlab.tubit.tu-berlin.de/justus.beyer/streamagame_platform_frameworks_base/blob/marshmallow-x86/services/core/java/com/android/server/am/ActivityManagerService.java
I'm moving to my new laptop which has 4k screen (3840x2160, to be exact). As my OS of choice I have Linux, and all scaling I have set up for this is done via Gnome (scaling-factor in gnome tweaks is set to 2). Overall, setup looks perfect, except for Android AVD run in IntelliJ IDEA.
AVD is configured to use skin with 1920x1080 dimensions, and I've expected that it would be roughly the height of the screen, however for some reason AVD is scaled up, which obviously looks.. weird and unusable.
I've took a look at relevant questions here about scaling the emulator, but it seems that IntelliJ interface has changed, as there is no Emulator tab in Edit Configurations menu (and answers to questions I've seen said to use that option to downscale the emulator). So, question is: how do I scale it down (or, to put more correctly, how do I disable the scaling for emulator)?
Ok, I've found out what the issue was. UI scaling is handled by Qt in case of android emulator. It was set to: QT_DEVICE_PIXEL_RATIO=2 somewhere in my configs. This made emulator act weird. Cheers!
Just delete the environment variable and restart Android Studio to get the new env variables.
I don't have a tablet but I wanted to take screenshots from the emulator for display in Google Play. I did that using Eclipse (using the method given in the top answer here How to take emulator screenshots using Eclipse?) but the screenshots are not good quality: the image is broken (some areas are kind of shifted) in at least one spot each time I take a screenshot.
Is there any better way to do it?
According to this answer that is an emulator issue. To solve this, you need to enable the 'use host GPU' setting when creating an emulator, according to another answer.
I would use the DDMS shipped with ADT (also listed as Debug monitor) and choose the device and app, then click that camera icon. It creates very good looking screenshots.
I also got some rendering errors with the emulator... It's best with actual devices. You can also try if other images/emulators perform better.
I tried changing the screen resolution in build.prop file in system, but it requires re booting.
I need a solution for changing screen resolution on android devices without re booting.
Thanks,
Krishna
Unfortunately that is not possible. Everytime when Android boots, it will read the build.prop file and set parameters pointed by it accordingly. After it has booted, it will not access that file dynamically to change parameters. So for any change to take effect, a reboot is compulsary, you cannot escape it.
Set resolution (e.g. 1024x768):
$ am display-size 1024x768
Reset:
$ am display-size reset
Doesn't require a reboot. This works with Android 4.2. Solution for 4.3 is mentioned by LiTTle
There is also an App for that called NOMone Resolution Changer.
Android can change the screen resolution.
I think that you need Android 4.0 and above version.
Only things you need is terminal emulator and root access.
Reproduce the following steps:
1. Open the terminal emulator app.
2. Type su.
3. Type wm.
Read the help message appeared and you will understand...
In case you want an App take a look at this on Play Store or the source from Github.
I have finished my application, but I have only 1 real device, and I need to test my application for different screen sizes. So, please, tell me, which emulator configurations should I use for diffrent screen sizes in order to I will be sure that my application will work on each configuration? Thank you.
there are more than 20 target devices are available in android developer website.
you can download few of them and load those devices in your emulator...
there is option in eclipse to select your target device before running your application...
Even by using the ADT plugin, in the layout editor, we can select the desired type of the phone, resolution, orientation and can check immediately with different types of resolutions..