Thursday, July 26, 2012

Jellybean Graphics Bug - Help!

There's a really annoying bug in Jellybean, and I can't work out how to get round it, so I'm posting it here in case someone else has come across it and knows a solution:-

I've got two .png images in my app, both identical except for the name and I've changed one of them to be "bluer" (using Gimp). However, Jellybean refused to draw the bluer one. (I'm having trouble with other random images as well). There are no errors, and it loads the file okay, but nothing appears. I've tried swapping their names. They're both only 57x57 pixels, so it's not a memory issue.

Someone else has posted the same problem on Stack Overflow, but as of now there are no replies.

It's driving me mad!  How can something broken like this end up being released onto millions of mobile phones?

UPDATE: I've found a workaround!  Copying my images into /drawable-nodpi, seems to have solved it.


Boris Kolar said...

Just guessing ideas for possible workarounds (I have no Jellybean):

Steve said...

Thanks for the suggestion but unfortunately it didn't work.