3House - Android client

@xsnrg I think that I have time to implement the Setpoint widget this weekend. Thanks for bringing it up.

So the Setpoint Widget is implemented now, but it fails to load if the minValue maxValue and step “values” are not quoted.
And Openhab does not deal with these parameters if they’re quoted.

The app also crashes when loading the offical OpenHAB demo: http://demo.openhab.org:9080/classicui

10-30 15:39:20.627 E/AndroidRuntime(25203): java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference
10-30 15:39:20.627 E/AndroidRuntime(25203): 	at treehou.se.habit.connector.Communicator$7.success(Communicator.java:367)
10-30 15:39:20.627 E/AndroidRuntime(25203): 	at treehou.se.habit.connector.Communicator$7.success(Communicator.java:364)
10-30 15:39:20.627 E/AndroidRuntime(25203): 	at retrofit.CallbackRunnable$1.run(CallbackRunnable.java:45)
10-30 15:39:20.627 E/AndroidRuntime(25203): 	at android.os.Handler.handleCallback(Handler.java:739)
10-30 15:39:20.627 E/AndroidRuntime(25203): 	at android.os.Handler.dispatchMessage(Handler.java:95)
10-30 15:39:20.627 E/AndroidRuntime(25203): 	at android.os.Looper.loop(Looper.java:211)
10-30 15:39:20.627 E/AndroidRuntime(25203): 	at android.app.ActivityThread.main(ActivityThread.java:5373)
10-30 15:39:20.627 E/AndroidRuntime(25203): 	at java.lang.reflect.Method.invoke(Native Method)
10-30 15:39:20.627 E/AndroidRuntime(25203): 	at java.lang.reflect.Method.invoke(Method.java:372)

@mattias_markehed:
The App is crashing on startup. Are you aware?

I am aware of the problem.There is unfortunately not an easy fix for the problem.
The easiest thing to do is to clear the app-data or reinstalling the application.

I’m really sorry for the inconvenience, the only good thing I can say is that I have added tests to prevent it from happening again.

No Problem, I cleared the app data and it worked again! Thank you!