Resolution problems - Android Q&A, Help & Troubleshooting

Hi,
I originally wrote my application with a android:minSdkVersion of 1. This apparently means the application reports a screen height of 480 and a screen width of 320. This wasn't a problem as it still looked good on my Galaxy S i9000 (see pic 1). Once I discovered noticed this and changed it to a latter API it reports a higher resolution (with different aspect ratio). I managed to translate coordinates and resize images to deal with any resolution but now it looks all pixilated (see pic 2). I am using Libgdx for my 2d graphics using Sprites.
imageshack.us/photo/my-images/853/compatibility.png/
(looks nice and blended and not pixilated)
imageshack.us/photo/my-images/580/reslow.png/
(looks pixileated)
Are there any problems with releasing a program targeting API 1 since it seems to work better?
It seems like when there is a low resolution the display driver handles the resizing and blends it to look nice but when libgdx does it it doesn't look as nice.
Any thoughts would be great.

Related

[Q] Actual Screen size

What is the exact screen size I should use while developing apps for Prime ?
Declared screen resolution isn't correct, because I used that and tested and its not showing in full size as it should, so it must be some other screen size.
Don't know, but would it work to take a screen shot and mail yourself the photo?
I had the same trouble with my hubs screens. Beautiful Photoshop stuff, but when they display at the original (advertised) size, they have a few pixels missing at either end.
I've used 1280x800px, but width of 1280 won't go to their ends and height seems to be shorter, because I see font degradation and rest of the objects, but its best visible on fonts (at least in my case.)
I'll have to explore tomorrow with different sizes... although I don't like these testing where I have to do whoknows how much of them to find exact dimensions.
The system bar take 48 pixels. So the actual resolution that's is available is 1280x752
If you going to create a app. I why don't look at android developer section for guide and info.. Just a suggestion...
http://developer.android.com/guide/practices/screens_support.html
http://developer.android.com/guide/practices/screens_support.html#DeclaringTabletLayouts
Asus Prime & Tapatalk
Both of your links don't mention 752px, there is 720.
Anyways I don't use Android SDK or any other of their info. I use Adobe Flash and do it all from there. Very easy and no need for lots of reading

[Q] Decrease Resolution for Gaming?

Hello Tablet Z community,
This is my first post in this devices forums since getting mine last week. It's a great device, love it, etc.
I've never owned an Android device with a screen resolution this high so I've yet to encounter this problem - some of my games (specifically the emulator PPSSPP) have relatively low framerates (compared to my less powerful Samsung P6810 @ 800x1280). I know with computers in particular it's trivially easy to change resolutions in games/the OS, especially to increase FPS but I've never seen a method to do this on Android and Google searches turn up people mentioning device resolution without changing them.
Does anyone know if it's possible to, ideally, force a different resolution for a particular application? A less than ideal solution would be a system wide change but I would be willing to endure temporarily to increase FPS.
Any advice and suggestions would be greatly appreciated
I would be interested to know about this, iv just loaded ppsspp however havent been able to play any of the playable games listed, I did see a few videos of the xperia z playing well, however that has the same resolution and specs.
juzza87 said:
Does anyone know if it's possible to, ideally, force a different resolution for a particular application? A less than ideal solution would be a system wide change
Any advice and suggestions would be greatly appreciated
Click to expand...
Click to collapse
That was recently discussed in this thread: LCD Density Changes and Results (With Pics)
Cat McGowan said:
That was recently discussed in this thread: LCD Density Changes and Results (With Pics)
Click to expand...
Click to collapse
This is very different, setting the DPI to a non-stock value just resizes the userspace, the resolution is fixed and unchangeable as the OP is thinking. Compared to a Windows PC where you can change the resolution, in Android you only have the ability to change the dpi, which states how large the pixel-to-screen size is. A smaller number indicates a smaller pixel-to-screen size, meaning the information shown on screen is sized for a laeger screen (making it smaller, since the screen is a fixed size). And a larger number has the reverse effect. Android UI guidelines set the optimal dpi for resolution vs. screen size, to mainain a similar experience across devices (similarly sized icons and fonts, etc). Again, this has nothing to do with adjusting the physical resolution of the device, which (to my knowledge) is not possible in Android.
daveid said:
This is very different, setting the DPI to a non-stock value just resizes the userspace, the resolution is fixed and unchangeable as the OP is thinking. Compared to a Windows PC where you can change the resolution, in Android you only have the ability to change the dpi, which states how large the pixel-to-screen size is. A smaller number indicates a smaller pixel-to-screen size, meaning the information shown on screen is sized for a laeger screen (making it smaller, since the screen is a fixed size). And a larger number has the reverse effect. Android UI guidelines set the optimal dpi for resolution vs. screen size, to mainain a similar experience across devices (similarly sized icons and fonts, etc). Again, this has nothing to do with adjusting the physical resolution of the device, which (to my knowledge) is not possible in Android.
Click to expand...
Click to collapse
Heh. Thanks for the schooling, but it was unnecessary, I didn't just fall off a turnip truck.
Thanks for the replies guys, at least now I know for sure..

Force Change Aspect Ratio?

Hello,
I have a minor annoyance with my monitor on Remix Os for pc. I have searched but could not find anything for fixing this.
My native aspect ratio for my monitor is 5:4 but it supports 16:9 (on all resolutions except one which is 5:4 native unfortunately)
When I change the resolution on remix I get a HUGE letterbox effect where the picture is merely a race stripe down the middle. The native aspect ratio warps images just enough to bother me. I would love to fix this because it is a multitouch monitor. On Windows and Linux I have the option to select out of a list my monitor supports. (1280x1024 5:4, 1920x1080 16:9) On Android/remix I manually input them but I can't find anywhere to change the aspect ratio. Would anyone know how to change this?
Any help would be appreciated

Changing resolution blocks screenshots

@duraaraa any info or direction that you can provide on this?
I upped the resolution from stock 1080x2160 to 2160x4320 and left dpi at stock so I can have more screen real estate and still have a comfortable viewing experience. The issue I'm facing now is, I cannot capture a screenshot I get an error.
System UI
Couldn't Capture Screenshot
Screenshots are not allowed by this app or your organization.
steps to reproduce:
up your resolution to 2160x4320 and take a screenshot
Any guidance would be appreciated.
webleeper said:
@duraaraa any info or direction that you can provide on this?
I upped the resolution from stock 1080x2160 to 2160x4320 and left dpi at stock so I can have more screen real estate and still have a comfortable viewing experience. The issue I'm facing now is, I cannot capture a screenshot I get an error.
System UI
Couldn't Capture Screenshot
Screenshots are not allowed by this app or your organization.
steps to reproduce:
up your resolution to 2160x4320 and take a screenshot
Any guidance would be appreciated.
Click to expand...
Click to collapse
Sorry, don't know. Probably issue related to rooting and the settings you changed.
Thanks for the quick reply but I'm not rooted.
webleeper said:
@duraaraa any info or direction that you can provide on this?
I upped the resolution from stock 1080x2160 to 2160x4320 and left dpi at stock so I can have more screen real estate and still have a comfortable viewing experience. The issue I'm facing now is, I cannot capture a screenshot I get an error.
System UI
Couldn't Capture Screenshot
Screenshots are not allowed by this app or your organization.
steps to reproduce:
up your resolution to 2160x4320 and take a screenshot
Any guidance would be appreciated.
Click to expand...
Click to collapse
Mate 10 pro panel is only 1080p to begin with,
In what way did you upped the resolution ?? The setting wont give you that resolution option.
otonieru said:
Mate 10 pro panel is only 1080p to begin with,
In what way did you upped the resolution ?? The setting wont give you that resolution option.
Click to expand...
Click to collapse
no need for root or settings to change DPI or Resolution
adb shell wm size 2160x4320
adb shell wm overscan reset
webleeper said:
no need for root or settings to change DPI or Resolution
adb shell wm size 2160x4320
adb shell wm overscan reset
Click to expand...
Click to collapse
uh... well... you already understand that this method is "only faking" the number for the app to think that it run on that size of screen right ? Hardware & stock OS wise, the limitation is still on 1080p
I dont think the system UI app of EMUI 8 itself was made to handle that number
Normal 4K itself is only 3840 x 2160, and i dont think i ever found any phone running 4K+ (18:9)
This is just like asking why sometimes the play store act weird when we change our DPI
So answer is that : because it simply didn't support it
I've done #wm size 720x1280 & wm density 320 to 720p screen for long battery life. and I found the system's screenshot can not take whole screen(720p one).
It looks like the screenshot component take a 480p screen and the same 720p adjusting on AEX 5.x is fine.
so I thought maybe the screenshot on pie still mistake 720p screen for 1080p screen and take a 480p picture(expect: 1080p x 720/1080 = 720p, but now: 1080p x 720/1080 x 720x1080 = 480p)
But I notice that keep wm size 1080x1920, whatever which density(320 480 240)I've set, the screenshot could take a complete screen picture. while I change density, whatever resolution (720x1280, 480x800, 1080x1920), screenshot just take the top left part of screen...
partial screenshot is same condition , take a top left part of what I selected .
the screenshot on different resolution is the last issue I can found on AEX 6.0, which not contain on AEX5.x(maybe this is pie issue but still expect you can fix it) if I don't need change the resolution, the ROM is PERFECT?
can you fix this ?? thxxxxx a lot
XDrz said:
I've done #wm size 720x1280 & wm density 320 to 720p screen for long battery life. and I found the system's screenshot can not take whole screen(720p one).
It looks like the screenshot component take a 480p screen and the same 720p adjusting on AEX 5.x is fine.
so I thought maybe the screenshot on pie still mistake 720p screen for 1080p screen and take a 480p picture(expect: 1080p x 720/1080 = 720p, but now: 1080p x 720/1080 x 720x1080 = 480p)
But I notice that keep wm size 1080x1920, whatever which density(320 480 240)I've set, the screenshot could take a complete screen picture. while I change density, whatever resolution (720x1280, 480x800, 1080x1920), screenshot just take the top left part of screen...
partial screenshot is same condition , take a top left part of what I selected .
the screenshot on different resolution is the last issue I can found on AEX 6.0, which not contain on AEX5.x(maybe this is pie issue but still expect you can fix it) if I don't need change the resolution, the ROM is PERFECT
can you fix this ?? thxxxxx a lot
Click to expand...
Click to collapse
Who is gonna fix what? Just use the phone the way its supposed to be used i dont understand what you are doing and why. If anyone, huawei can fix your issue i guess.... good luck talking to them.
You should read this, particularly the long answer near the top which explains the size vs density changes.
https://stackoverflow.com/questions...to-use-adb-shell-wm-to-simulate-other-devices
I think this is actually a bug in android pie. My phone has a 4k display, but normally uses HD res unless in gallery app. So I changed wm size and density to match the display (and despite what some other say, this actually changes the visible resolution, IF your display has this many physical pixels).
Screenshots worked worked fine in oreo, but after updating to pie, there are black borders on the picture.
Display
Spodi2290 said:
I think this is actually a bug in android pie. My phone has a 4k display, but normally uses HD res unless in gallery app. So I changed wm size and density to match the display (and despite what some other say, this actually changes the visible resolution, IF your display has this many physical pixels).
Screenshots worked worked fine in oreo, but after updating to pie, there are black borders on the picture.
Click to expand...
Click to collapse
No Huawei phone has a 4k display, this whole thread is a waste of space really, guy setting his phone display to something that is not supported and wondering why his screenshot won't work, damn mate 10 pro is 2160x1080 and can't be any more than that, if the problem was the screenshots not working in a supported mode there might be a reasonable and were but as it stands this thread should be closed and deleted
revjamescarver said:
No Huawei phone has a 4k display, this whole thread is a waste of space really, guy setting his phone display to something that is not supported and wondering why his screenshot won't work, damn mate 10 pro is 2160x1080 and can't be any more than that, if the problem was the screenshots not working in a supported mode there might be a reasonable and were but as it stands this thread should be closed and deleted
Click to expand...
Click to collapse
The whole point of my post was more like: its not a Huawei only "bug", but effects all (or at least most) pi phones with a custom wm size set. Maybe I was beating around the bush too much... :angel:
Spodi2290 said:
The whole point of my post was more like: its not a Huawei only "bug", but effects all (or at least most) pi phones with a custom wm size set. Maybe I was beating around the bush too much... :angel:
Click to expand...
Click to collapse
Hi, have you found any solution for the screenshots when you change the screen resolution? You're right it happens only in pie and with different phones, in oreo the multitasking previews resize when you enter to the app but the screenshots are ok, in oreo the previews in multitask are ok but the screenshot miss a part of the screen.

Is There a Way to Increase the Camera DPI In the Camera Settings?

As the title suggests, I'm curious as to a way to increase the DPI for the camera app to increase the quality of photos taken (when zooming in on a crop of a photo). I remember from my Note 3 that there used to be a way to change the quality of the photo (best, better, etc.) which was a way of changing the DPI for the photo taken.
Even if there's a way to do it with root (say by modifying the build.prop file), any advice would be great!
As an alternative, is there a camera app that allows for you to change the DPI and fully utlize the camera hardware? I used to use Camera Zoom FX (Premium) but it didn't play nicely with some of the phones (namely Motorola) that I have used that app on.
Thanks for the tips, help, guideance, etc.!
Not sure what you mean, you can set up to 20mp in the settings. Thats even more than the rgb sensor is capable of. I guess this upscales the rgb sensors color info to the 20mp picture the monochrome sensor is taking. I cant think of anything that Would utilize the hardware more
rob.allen78 said:
As the title suggests, I'm curious as to a way to increase the DPI for the camera app to increase the quality of photos taken (when zooming in on a crop of a photo). I remember from my Note 3 that there used to be a way to change the quality of the photo (best, better, etc.) which was a way of changing the DPI for the photo taken.
Even if there's a way to do it with root (say by modifying the build.prop file), any advice would be great!
As an alternative, is there a camera app that allows for you to change the DPI and fully utlize the camera hardware? I used to use Camera Zoom FX (Premium) but it didn't play nicely with some of the phones (namely Motorola) that I have used that app on.
Thanks for the tips, help, guideance, etc.!
Click to expand...
Click to collapse
highest quality you can do is raw in pro mode. you can later decide in what quality you compress it to jpeg
0alfred0 said:
Not sure what you mean, you can set up to 20mp in the settings. Thats even more than the rgb sensor is capable of. I guess this upscales the rgb sensors color info to the 20mp picture the monochrome sensor is taking. I cant think of anything that Would utilize the hardware more
Click to expand...
Click to collapse
I saw the 20MP option but that's not what I'm referring to Some camera apps or phone makers allow for you to change the quality of the picture taken in the form of changing the DPI. The higher the number, the higher the quality of the picture when looking at a 100% crop of a photo (but also the file size tends to be larger too). I know it's not common, but it is there for some camera/OEMs.
rob.allen78 said:
I saw the 20MP option but that's not what I'm referring to Some camera apps or phone makers allow for you to change the quality of the picture taken in the form of changing the DPI. The higher the number, the higher the quality of the picture when looking at a 100% crop of a photo (but also the file size tends to be larger too). I know it's not common, but it is there for some camera/OEMs.
Click to expand...
Click to collapse
I dont quite understand what that means though from a technical viewpoint. I am not an expert but i roughly know how cameras work and what parts they are made of (keywords: sensor/pixel size, sensor resolution, bayer matrix, etc.). I never came across something called DPI. I also do not know what should be happening when increasing this DPI.
Maybe you can enlighten me. Although this does not seem to be a feature for the Mate 10 i am very much interested in learning about cameras, especially in mobile devices.
0alfred0 said:
I dont quite understand what that means though from a technical viewpoint. I am not an expert but i roughly know how cameras work and what parts they are made of (keywords: sensor/pixel size, sensor resolution, bayer matrix, etc.). I never came across something called DPI. I also do not know what should be happening when increasing this DPI.
Maybe you can enlighten me. Although this does not seem to be a feature for the Mate 10 i am very much interested in learning about cameras, especially in mobile devices.
Click to expand...
Click to collapse
I had to research this a bit myself so that I could properly convey what I was originally asking for
This article from Snap Shop eCommerce helped quite a bit:
A Simple Introduction to DPI
(apparently, it's only useful if I intend on printing any of the photos taken from the camera itself)
I had a note 2 and a note 4 until just recently. I know the setting your talking about. Its got nothing to do with DPI - its more a compression setting/sharpening setting affects how big the filesize is from your camera as it affects how much each photo is compressed (was listed as "quality" modes? from memory)
Yep that's my understanding too - it's basically like 'fine' or 'superfine' settings on point n shoot cameras - dictates how much the JPG file is compressed. FWIW my Note 4 on Marshmallow seems to have dropped the setting, along with most other phones in the last few years. You just get the default compression for photos and bitrate for videos. As @madman_cro noted, you can make sure you're getting 100% of what the sensor is capable of by shooting RAW and doing the JPG processing yourself. Gotta love it when they remove settings so as not to confuse the average user....
I got a note 4 infront of me and went looking for the setting as well and couldnt find it either your right it must of got lost in a update hahahhaha (my boy has my note2 somewhere) but yeah its exactly what your saying with the fine/superfine etc more a compression setting than anything else
iv had lot's of phones(with custom and stock rom) and while I've never seen dpi settings it may have benefit for printing. as from what iv read now that you got me interested 72 is apparently enough for our screens and our phone delivers 92 so we are ok. il try to convert raw to higher dpi later and try it in phone while zoomed in but i doubt il see the difference cause its basicly the same image
Usual DPI is 72 at jpg photo at real cameras, if you shot in RAW usual DPI is 300, i think at mirrorless is even less.
better/higher DPI is because of post processing , higher dpi more details. Just simple, if you want better phots shot in RAW .
RAW or not makes no difference - the dpi stays the same,.
The DPI of a printed photo can be affected by the resolution the photo was taken at and the size of the printout (think about it...dots per inch.....or pixels per inch on photos really...DPI is more a printer thing. RAW has nothing to do with the amount of pixels/resolution - and therefore doesnt affect DPI whatsoever as its still exactly the same amount of pixels+ resolution involved whether its in RAW format or not...... All RAW means is that the photo was outputted without any editing by the camera first - its a unmolested original image with no processing which allows for a human to do all the editing later and perhaps a better job of it)
Take a 1 megapixel photo and print that photo on A4 paper, now take a 20megapixel photo and print it on a4 paper. The higher resolution image is going to have a higher DPI on the printout than the lower resolution image does, and would be noticeable as chances are the 1megapixel had such a low dpi at the printout size the image was stretched to fit. Take a 20megapixel RAW image, and a 20megapixel normal image - DPI is exactly with both as it has nothing to do with RAW.
What it all comes down to....Stay on the highest setting you can for resolution, and you have the best chance of getting a good printout later on and being compatible with bigger printouts while still keeping clarity (higher resolution photos can be printed larger without loss of quality)
I wouldnt try and make a poster from a 2 megapixel photo for instance - as it just doesnt have enough resolution to keep a good DPI **when the image is printed** The earlier question by the OP has been answered - it wasnt a DPI setting on her note at all its a compression setting (eg fine/superfine) nothing to do with DPI and has no effect on it either.
Thats kinda it in a nutshell and dumbed down a bit to explain it easier (Im gunna get nit picked to death on technicalities of terms perhaps but im trying to keep it simple)

Categories

Resources