Android Bitmap Height and Width equaling -1 -


i have 200 x 30 png-24 image trying load application. i've imported multiple other pngs using same method , work fine. when png loaded causes bitmap returned have -1 width , height. bitmap wont draw.

mgameover=bitmapfactory.decoderesource(c.getresources(), r.drawable.gameover);  

the line load in resource. doesn't help. have tried cleaning project , still doesn't work. tried recreating png still isn't working.

any ideas?

when bitmap factory returns -1,-1 in bitmap width , height of bitmap means android unable decode resource. - answer vector


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -