Closed nh2 closed 6 years ago
Leaving off the http
is a common error sorry! It should be specified better.
The other try-catch
statements are because I just wanted it to work and I've only been programming in Android for a month :)
The other try-catch statements are because I just wanted it to work and I've only been programming in Android for a month :)
Fair enough :) but ignoring the exceptions won't make things work more, only less (the app will continue in an incorrect state, and users won't know something is wrong).
I recommend you dont catch the exceptions. Then things will work equally much, the app will force-close properly, and users may even get a Report
button where they can send you the stack trace.
That's a good point, I will go through those when I update it.
I followed the server-via-docker setup and entered as URL
192.168.1.1000:8005
.If I go to localhost:8005 on the server, and enter the family that I put into the phone, it says that family doesn't exist.
If I go manually to
/view/dashboard/myfamily
, it loads the page but says at the top.You need to add learning data first: group 'mygroup' does not exist
, despite me having learned 5 locations already.If in the app I press the link shown at the top, I get to
FIND dashboard
, it showsmyfamily / mydevice
, but theLocation guesses
just shows the logo with the orange square circling around.In the
adb logcat
I see:So there are 3 problems here:
Server
field in the Android app really needs a protocol, likehttp://
, in the front, otherwise the whole thing won't work. It would be nice if the app could tell you that.MalformedURLException
up to the GUI, and continues anyway, thus suggesting to the user that everything is running when in fact nothing is running.They these locations use code like
Catching all exceptions is a well-known antipattern in Java; turning all exceptions into mere warnings and then continuing makes for bad UX because the program cannot work that way.
I suspect that this error is triggering the code path where the exception is thrown here and this catch-all` catches it and the app continues despite error.