29
f03n1x
7y

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!

Comments
  • 0
    Yeah, it's a pity not many devices have it.
  • 4
    @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 :/
  • 0
    Have you tried using a VM and setting it to have the desired resolution and dpi?

    The only way I could think of.
  • 4
    @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)
  • 0
    @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 ;-)
  • 5
    @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!
  • 0
    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.
  • 4
    @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
  • 1
    @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.
  • 5
    @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
  • 0
    @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.
  • 3
    i'd check it later when I'm less sleepy *_*
Add Comment