Gitsaibot / AF-Weather-Widget

Graph weather widget for Android
53 stars 13 forks source link

v2.0 doesn't work on Android 6 #34

Closed standmit closed 1 year ago

standmit commented 1 year ago

Since version 2.0 widget doesn't work on Android 6. The "Delay before attempt" message appear instead of a graph all the time.

robertafreese commented 1 year ago

Also seeing this on Android 7.

Gitsaibot commented 1 year ago

Do you tried to recreate the widget or you can try a reinstallation.

standmit commented 1 year ago

Do you tried to recreate the widget or you can try a reinstallation.

@Gitsaibot Sure. It doesn't help. I had to downgrade the app to version 1.9 to continue using it

Gitsaibot commented 1 year ago

@yparitcher Any idea if this may have to do with your changes?

yparitcher commented 1 year ago

No clue, sorry

Gitsaibot commented 1 year ago

Then we need a debug log to see whats happen.

robertafreese commented 1 year ago

Could you please point me to the correct way to save this log and I will create one?

hippie68 commented 1 year ago

Same issues on Android 7 since version 2.0. Version 1.9 works fine.

Gitsaibot commented 1 year ago

@yparitcher Is there a way to avoid using ssX or mmX in mTimeFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssX", Locale.US);? It requieres at least Api 24 and i think this is the reason why android 6 didn't work anymore.

Gitsaibot commented 1 year ago

@robertafreese There are several ways to obtain a log, e.g. https://help.testlio.com/en/articles/129738-capturing-logs-from-android

yparitcher commented 1 year ago

@yparitcher Is there a way to avoid using ssX or mmX in mTimeFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssX", Locale.US);? It requieres at least Api 24 and i think this is the reason why android 6 didn't work anymore.

You are right, X is only supported from 7 on. We need the X specifier to parse the timezone component of the response, and the earlier Z specifier is for the wrong format :(

Gitsaibot commented 1 year ago

Too bad, then the support for Android 6 falls away.

hippie68 commented 1 year ago

But the bug is there on Android 7.0, too, as I said.