Im trying to create a thread in RubyMotion for Android (beta).
I have tried the following code:
class MyRun
def run
end
end
r = MyRun.new
t = Thread.new(r)
t.start
The error I get is:
java.lang.NoSuchMethodError: no method with name='< init>' signature='(Ljava/lang/Runnable;)V' in class Lcom/rubymotion/Thread;
It is automatically finding the right signature (Runnable) but Im not sure why its confused. http://developer.android.com/reference/java/lang/Thread.html
0 comments:
Post a Comment