Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
f03n1x65038y@Eariel yup I guess I'm a little lucky, it'd be nice if they added it more Android versions though, it'd be one step ahead of apple for iOS development image testing.
My experience with iOS and image testing was opening and closing the app which adding to a % change to the image :/ -
lxmcf199508yHave you tried using a VM and setting it to have the desired resolution and dpi?
The only way I could think of. -
f03n1x65038y@BigMacca101 yeah that's a possibility, I was reading that on Android documentation page about supporting other devices but was just wondering if my option was at least valid, since it doesn't appear on the documentation at all (I'd think it would at least be mentioned or something)
-
lxmcf199508y@f03n1x Yeah mate I would use a VM, I think results wouldn't be as accurate if you drop your devices DPI bellow its default.
I could be wrong though so don't quote me on that ;-) -
f03n1x65038y@BigMacca101 it's actually the best thing to do, thanks, I'll probably give it a go next week.
Thanks again, I thought I'd be done sooner with this and the iPhone app but because I encrypt the data stored on the iPhone app I have to jump through more hoops for Apple. Thanks apple! -
How do you change your dpi? You can set sw in dp, which is pretty much all you need, however, it's not reliable. 320 is the smallest possible value. Anyway, I suggest using emulator for development, unless you need actual hardware features like gps or camera.
-
f03n1x65038y@mariuskaunietis well that's what my screenshot was for lol, I'm using that but I was wondering if it was the best way to make the images are accurate and @BigMacca101 suggested VMs which I'll be using, I downloaded majority of the versions couldn't find xxxhdpi though
-
@f03n1x dpi is not that important. It means how sharp the screen is, not how big it is. For perfect image quality you can calculate required resolution yourself - xxxhdpi is 4x the base resolution. To test your layouts, you should test on different sizes, not resolutions. And sw parameter - smallest width - is what you need here. It's more or less physical size of device. Most of the time sw setting in dev options is enough, but if you are doing some highly custom layouts, based on percentages - it may not work.
-
f03n1x65038y@mariuskaunietis ah okay but in my case the images I'm using have to be accurate in dimension so in terms of dpi they have to be accurate for every screen or at least for the specific categories, I can just resize the images just fine but I'd rather make sure they are accurate
-
@f03n1x most of the time, xxxhdpi is enough. Special case is app icon - use mipmap and add all sizes. For simple drawables, xxxhdpi is enough. I always use only them, and never encountered any problems. I don't know for sure, but I think xxxhdpi is scaled down at installation time.
Related Rants
Hey so this is more of an Android advice post rather than a rant
So it's to do with the app I'm working on, I want to make sure that the app images are working on different size screens and I was wondering if using the developer option for changing dpi a feasible option in terms of testing, so far I've tested for xxhdpi and xxxhdpi, and just now tested for xhdpi and so far so good.
But I can't seem to test for any smaller screens (240dpi and below)
Just thought I'd ask you guys because this is the best community ever!
undefined
advice
android