murraycu / android-galaxyzoo

This Android app lets you classify Galaxy Zoo subjects. It is available in the Google Play Store: https://play.google.com/store/apps/details?id=com.murrayc.galaxyzoo.app . Try beta versions early here: https://play.google.com/apps/testing/com.murrayc.galaxyzoo.app . See also the iPhone app for Galaxy Zoo: https://github.com/murraycu/ios-galaxyzoo/
GNU General Public License v3.0
11 stars 13 forks source link

Reports of no galaxy being presented #12

Closed chrislintott closed 9 years ago

chrislintott commented 9 years ago

1 user on Lollipop is reporting that the app loads and flashes, but does not display a galaxy.

murraycu commented 9 years ago

Thanks. I need a few clues, please:

When it can't download a galaxy it should at least show an error message. Does it?

Does it continue to show the "Loading..." message and circle?

Does it help to close the app and reopen it? For instance, by swiping it away in the list of running apps.

And can I have the app's version number, please? It's in the About box, which can be opened from the menu.

murraycu commented 9 years ago

This is what happens (or is meant to happen) in these cases at the moment:

  1. There's no network connection at all: The user sees a "No network connection" message for a short time. Re-opening the app, for instance by going to home and then opening the app again, will make it try again.
  2. There's only a mobile/cellular connection but the app's setting has "wifi-only" selected: The user sees a "No Wi-Fi network connection" message for a short time. Re-opening the app, for instance by going to home and then opening the app again, will make it try again. Also, changing the setting will make it try again.
  3. There's a suitable network connection but it's not working for some reason, such as a problem with the local network or a problem with the zooniverse server: The users sees an alert dialog saying "Cannot download new subjects to classify." with Cancel and Retry buttons. If you press Cancel then re-opening the app will make it try again.
murraycu commented 9 years ago

Any chance of that user talking to me here?

murraycu commented 9 years ago

I've seen this a couple of times after testing the app immediately after updating beta releases from the play store, though that's generally when I test it. It seems to be trying a cached subject, abandoning it, then trying the next, and not trying to download another when it has tried (and failed to load) them all. This abandoning-an-item behaviour is there to deal with cached subjects whose images have not been completely downloaded. Strangely, it seems to even lose its cached subjects that have already been classified and uploaded, suggesting a general problem with the sqlite database.

Restarting the app seems to fix the problem.

I've added some log output to the app and I've installed a log viewing app so I can investigate it more next time I see it.

murraycu commented 9 years ago

I managed to reproduce this reliably by deleting the app's cache and then going back to the app and trying to load another image - for instance, by clicking Invert or by finishing the classification.

So I think this was triggered by the Android system automatically deleting the app's cache to temporarily save space - Maybe that happens sometimes when installing app updates.

I'm confident that it's fixed now, but I will play with it a bit more here before releasing a new version.

murraycu commented 9 years ago

I've just released version 1.38 with these fixes. Please let me know if the problem still happens.