adp
adp

Reputation: 226

Images occasionally won't show

This is one of those random things without any errors to report about :/

From time to time images don't show in our app. There's no sign of any errors. Our app shows a list of user submitted images and there's a lot of them.

Here's some info:
- jpg images @ 180x180
- images are pulled from our backend
- and a few images are pulled from googles static map service
- it happens on iOS and Android
- it happens randomly
- no errors show up in the console
- an restart of the app will fix it
- I've experienced it both with SDK 4.1 and SDK 5.1
- it's an Alloy app

Has anyone seen anything similar to this? I know there's no code examples but I don't know where to look as nothing fails and I can't reproduce it.

Upvotes: 0

Views: 67

Answers (3)

Hans Knöchel
Hans Knöchel

Reputation: 11552

This issue relates to Appcerator - Android 6 image don't load, it has already been fixed yesterday and will be part of the upcoming SDK release 5.2.0.

Upvotes: 1

Shawn
Shawn

Reputation: 2735

Are you trying to show a bunch of images at the same time? And some of them fail to load?

If you are using ImageView, I would just listen to the error event and reload the image. docs

Upvotes: 1

rjcpereira
rjcpereira

Reputation: 953

Don't know if this will help, but sometimes when I set an image directly by url to an ImageView, the imagem did't appear or was't the most current, so I've added:

$.ImageView.image = 'http://example.com/image.jpg?'+Math.random()

Returns something like this:

$.ImageView.image = 'http://example.com/image.jpg?0.6108739504124969'

Upvotes: 0

Related Questions