How to provide AOSP screen size information? - android

Recently I bought Xiaomi MI Pad 4 with custom multilanguage MIUI and decided to install pure Android on to the device.
I found an article and installed phhusson GSI
All works fine but it seems Android doesn't know anything abount the Tablet phisical screen size. I see very big fonts and pictures like if usual phone was inlarged.
And my question is how to make the tablet work as a tablet, not as a big phone?

Author of GSI anwered.
There is cool command
adb shell wm density 240
and phone screen density changes to 240!

Related

Android Studio Emulator Fonts Blurred

I have install flutter and android studio and setup as usual in new laptop running windows 11 pro. But when I start emulator its fonts are not clear, blurred. I tried switching emulated performance from hardware to software, but not works, is any one facing this issue.
My monitor display resolution 1366 * 768 Scale 100%
I used pixel emulator with 1080* 1920 resolution
and Pixel 3a with 1080*2220 resolution
same problem exist with both emulators.
Actually I don't think there would be a solution for that.
Because this problem is related to down scaling emulator window too much.
But you can do one of these:
1- create a new emulator and use a smaller screen size (around 720p). the downside is that you can not create emulator with Google play system images, as they need 1080p phone screen size. you can still use Google Apis images.
2- use a monitor with at least 1080p resolution.
3- use third party emulators like Memu. you can choose any screen resolution in these emulators, and they come with google play. also their performance is much better than Android studio native emulator.
4- use a physical Android phone.

layout is different in real device

I'm developing android app that have few activities. I have Samsung S6 device in my hand, so I created the same device in the android studio emulator to make it easy. But the problem is when I install the APK in my physical device it's not showing the layout as the emulator device. I used the same screen size ( 5.1 ) & the same resolution of 1440 pixels by 2560 pixels when creating the emulator device. can someone please help me ?
I also uploaded 2 screen shots to better understanding.
In Emulator
In Real Device

Testing Mobile App on specify tablet

i've developed an android application for tablet and my question is:
How can i test my android application on tablet 7 inch widescreen and what is the real screen resolution for this tablet ?
Please Create 7 Inch tablet Emulator and install your application in emulator
that perfect way to testing our application when we don't have tablet device.
You need to specify different dimens.xml in different folder for each of your screen, for example text size or width and height. For more explanation you can look at this

Android custom resolution 1920x1200

I'm building an Android app for Asus Transformer Infinity Pad.
I do not work with the Emulator, but directly with the tablet.
I was working with the maximal possible resolution of 1280x800 (which I've selected from the editor menu) and it looks good both in Eclipse graphical editor and on the tablet itself.
Apparently, I've found that tablet's resolution is HD 1920x1200. As I want to get most of the tablet's resolution, I'd like to work with 1920x1200 both in editor and on tablet.
1. How do I set up a custom resolution of 1920x1200 in Eclipse Graphic Editor (not emulator)?
2. How do I tell the tablet itself to work with 1920x1200 resolution?
Thanks
=====================
OS: Android 4.2.2
SDK: API 17
Tablet: Asus Transformer Infinity Pad TF700T
1. How do I set up a custom resolution of 1900x1200 in Eclipse?
Possible Duplicate:
In Eclipse if you Select the Android SDK and AVD Manager in the Window drop down menu.
You should be able to change the screen size of your Android Virtual
Device (Emulator) there.
2. How do I tell the tablet itself to work with 1900x1200 resolution?
I assume you mean 1920x1200, but I am still not completely sure what you are asking here. The default resolution of the Asus Transformer Infinity Pad TF700T is 1920x1200.
If you did indeed mean 1900x1200, and you want to force the resolution of the TF700T to be 1900x1200 than I am afraid your out of luck. I don't think this is possible, and I don't really see why you want this.
There are a few apps available that can change your screen resolution, if your device is rooted, but I am not sure if the TF700T is supported. Apps such as this one.
Short answer: everything's fine, don't worry about it.
The tablet will pretty much always use the default/native/max resolution. If everything looks good, then don't worry about it. It is using the full resolution anyway. You can't change the graphical layout editor to use custom resolutions as far as I know, so you don't have much choice there (at least for now). It sounds like working with the 1280x800 config gets you close enough that it looks good both in the editor and on the device, so really you don't need to change anything, and there'd be little benefit anyway unless you have some really complex layouts that simply don't fit into the smaller resolution screen (which again, would only be in the editor, the device would use the full resolution).
How do I set up a custom resolution of 1900x1200 in Eclipse?
No need to set any resolution for your eclipse
work with your normal x-large mdpi resolution
let say
x-large-mdpi 1280 x 800 =1
x-large-hdpi 1920 x 1200 =1.5
x-large-xdpi 2560 x 1600 =2
so when you supply graphics for mdpi,hdpi,xhdpi that will work prefectly.
so let design with your normal resolution in your emulator 1280x800
2 How do I tell the tablet itself to work with 1900x1200 resolution?
Google recently released a Device Availability Dialog in the Developer Console that allows you to select the particular device to install. link here
How to restrict android app to specific device make?
if you want only for tablet support you can do like this
<supports-screens
android:smallScreens="false"
android:normalScreens="false"
android:largeScreens="false"
android:xlargeScreens="true"
android:anyDensity="false" />

Preparing apps for the nexus 10

I am working on an android Audio Recording application, our app is currently designed to work on all android phones, the Nexus 7 and the Motorola Xoom tablets.
I was wondering if there are any guidelines or best practices to re-design/modify our app for Nexus 10. More specifically, any pointers on the below points would be really helpful:
UI guidelines to support the new 2560x1600 resolution
Android resource files related modifications (based on similar guidelines)
Any sample or open sources apps that have been modified to work on the nexus 10
Best practices creating and running a nexus 10 emulator since there is no such AVD device by default (screenshot below). Any thoughts on creating one, keeping the high resolution in mind.
As long as you have xhdpi assets, and layouts made for 10" tablets, you shouldn't have to do anything (except add a new xxhdpi launcher icon, as #Mattias mentioned).
To make a Nexus 10 AVD, navigate to Device Definitions:
Then, click New Device. Fill it out something like this:
Now it will be listed in the devices drop-down that you show above.
Regarding your second point, resources:
While the nexus 10 is a xhdpi device, it will use the launcher icon from xxhdpi "one bucket up" if available, so make sure to provide one as it will look much better/clearer/sharper. Reason is that there is room for a bigger icon on this device. Launcher icon size at xxhdpi is 144x144 pixels.
For reference see:
https://plus.google.com/118292708268361843293/posts/ePQya3KsTjW
The best way to emulate the Nexus 10 is to use AndroVM. I am currently running Android on it with the full Nexus 10 2560x1600 resolution and it fits onto my HD screen if I set AndroVM to use 320dpi.
Oh.. and it's VERY fast :-)
I personally use it over emulators and real hardware devices as it's extremely responsive and the deployment of the APK is lightning fast.
I do not contribute to the AndroVM project myself by the way, but it has speeded up my own development cycle considerably. In all development cycles, a developer waiting to see if their code tweaks work using an emulator or a hardware device adds considerable time overhead. I would thoroughly recommend using AndroVM regardless of screen size during normal code development.

Categories

Resources