android - Images not found in drawable-large nor drawable-small -


i have images in drawable-normal can load them via

 bitmap bm = bitmapfactory.decoderesource(mcontext.getresources(), resourceid,              mbitmapfactoryoptions) 

when move images on drawable-large (and remove them drawable-normal), images not loaded anymore. there no error, null bm. when move them drawable-hdpi or like, loaded again.

does android handle -small, -normal , -large folders different other resource folders? described here, should load images -large folder.

i guess found answer own question. reading aforementioned page more carefully, turns out, android searches drawable-*dpi folders automatically, other qualifiers looks in default folder if not find resource in more specific one. in other words, if not find resource in drawable-normal, looks in drawable , stops trying. it's drawable-*dpi folders android looks folders. guess i'll switch these. tanmay trying me.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -