hiya! so i bought a shiny new htc one x (maybe that causes the problem) with android 4.0.3 (i guess that causes the problem) and the sad news is kontrolleur won’t start but throws an exception: (i’ve downloaded it from google play (alias android market) is that up-to-date?)
Exception class name: java.lang.ArrayIndexOutOfBoundsException
Source file: Kontrolleur.java
Source class: processing.android.test.kontrolleur.Kontrolleur
Source method: getTargetIP
Line number: 788
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
i don’t know if the source of the problem is coming from processing or it can be corrected in kontrolleur. anybody can confirm this with android 4?
i don’t have an android4 device here and kontrolleur was last built around a year ago with an older processing version. so maybe it just needs a rebuild and possible minor adaptions. sources are here: https://github.com/vvvv/Kontrolleur
so i took elektromeier’s advice and it turned out it has trouble if the phone HAS an ip address. i mean it works only if i turn off wifi, 3g, and turn on airplane mode but as soon as i turn the wifi back on (and only the wifi) kontrolleur crashes. and it’s quite meaningless without wifi.
sorry for late response i’m quite busy nowadays now it compiles nicely if there’s no wifi it runs nicely however it produces the same error as before. probably it will be something with the processing side. i spoke some people who are into android development and they said there were some changes in android 4.x which makes some apps incompatible with it what ran on previous android versions. they also said developing for android is a mess and its sdk is a hellhole :D
update: oops i had 2 IP addresses probably from usb debugging or htc sync i dunno i’m figuring out how to make an .apk file from the sketch
update2: getLocalIP() caused the problem. i’ll try to add a textbox or something, like with target IP address. i’ve just wrote FLocalIP = “127.0.0.1” for now and it works as it should. of course there’s no feedback to the phone now