Image does not load in all screen resolutions (android emulator)

You must Login before you can answer or comment on any questions.

In certain android emulator screen sizes (for example QVGA) my App does not load certain image in an imageview. In others (like WQVGA400) it does! In the log I find these three lines that I am reasonably sure explain why:

W/TiDrawableReference( 490): (main) [30,57884] Unknown image resource type: . Returning null drawable reference

W/TiDrawableReference( 490): (main) [3,57887] Bitmap bounds could not be determined. If bitmap is loaded, it won't be scaled.

W/TiDrawableReference( 490): (main) [1,57888] Could not open stream to get bitmap

Anybody what causes this? And What I need to do to prevent it?

Thanks Gino

1 Answer

If this is a remote image, be sure to use imageview.url=

— answered 2 years ago by Stephen Feather
answer permalink
2 Comments
  • And yes, before I hear that .url has been deprecated explain why it works without error when .image does not.

    — commented 2 years ago by Stephen Feather

  • Stephen thanks for your reply but no it's not a remote image. Its located in a resources/images directory from where other images are loaded correctly.

    — commented 2 years ago by Gino Bruijn

Your Answer

Think you can help? Login to answer this question!