danielgimenes / NasaPic

Android App - Set NASA's Astronomy Picture of the Day as your wallpaper!
https://play.google.com/store/apps/details?id=br.com.dgimenes.nasapic
MIT License
12 stars 2 forks source link

Crash / API key required? / Missing resource? #1

Closed ghost closed 8 years ago

ghost commented 9 years ago

The app crashes at startup when internet connectivity is available, but starts up without. Looking at the logcat,

D/Retrofit(16409): <--- HTTP 200 https://api.nasa.gov/planetary/apod?api_key=biwbr55t29bUSURh2hMbkccNkpvRoNyVi8XBHxm1&concept_tags=false&date=2011-05-17 (1041ms)
D/Retrofit(16409): {"url": "http://apod.nasa.gov/apod/image/1105/aurora_vetter_900.jpg", "media_type": "image", "explanation": "On some nights, the sky is the best show in town. On this night, the sky was not only the best show in town, but a composite image of the sky won an international competition for landscape astrophotography. The above winning image was taken two months ago over J\u00f6kuls\u00e1rl\u00f3n, the largest glacial lake in Iceland.  The photographer combined six exposures to capture not only two green auroral rings, but their reflections off the serene lake. Visible in the distant background sky is the band of our Milky Way Galaxy, the Pleiades open clusters of stars, and the Andromeda galaxy. A powerful coronal mass ejection from the Sun caused auroras to be seen as far south as Wisconsin, USA. As the Sun progresses toward solar maximum in the next few years, many more spectacular images of aurora are expected.", "concepts": null, "title": "A Starry Night of Iceland"}
W/ActivityManager(  737): Activity pause timeout for ActivityRecord{541ce65 u0 br.com.dgimenes.nasapic/.activity.MainActivity t110 f}
W/PackageManager( 1044): Failure retrieving resources for br.com.dgimenes.nasapic: Resource ID #0x0
danielgimenes commented 8 years ago

Hi! Sorry for not responding this.

The app tries to change the picture every 6 hours. That might be what you have noticed about it using the internet when closed.

Anyway, I've just released v3.1 in case you want to check it out.

Thanks.