SmartAxiom / openhab

Automatically exported from code.google.com/p/openhab
0 stars 0 forks source link

HABdroid: wrong URL produces force close #111

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. open HABdroid
2. go to settings
3. go to "openHAB URL"
4. type "192.168.1.2:8082" and press "OK"
5. press "back"
6. Force Close occures
7. The App cannot be started successfully again.

What is the expected output? What do you see instead?
 There should be a massege about "URL is wrong" or something.
 And a propper documentation how the "openHAB URL" should look like. (with or without "http://", "/GreenT", "/", ...)

What version of the product are you using? On what operating system?
- current Version

Work around:
- Go to "manage Apps" in Android to delete the configuration data of HABdroid
  Then start the App again and use the correct URL.
- use auto discovery of HABdroid

Original issue reported on code.google.com by christop...@gmail.com on 26 Aug 2012 at 11:39

GoogleCodeExporter commented 8 years ago
Looks like you need a "/" at the end of the URL.

Original comment by christop...@gmail.com on 26 Aug 2012 at 11:43

GoogleCodeExporter commented 8 years ago

Original comment by kai.openhab on 27 Aug 2012 at 7:10

GoogleCodeExporter commented 8 years ago
I've added an URL validation to preferences, so now user will be warned if 
entering an incorrect url.
I also made some url normalization so there is no more need in this "/" at the 
end!

Original comment by belovic...@gmail.com on 23 Sep 2012 at 4:51

GoogleCodeExporter commented 8 years ago

Original comment by belovic...@gmail.com on 23 Sep 2012 at 4:52