Update function
Posted
by kosmaks
on Stack Overflow
See other posts from Stack Overflow
or by kosmaks
Published on 2010-05-14T14:27:06Z
Indexed on
2010/05/14
15:14 UTC
Read the original article
Hit count: 264
Hello everyone! I try to learn java for android devices.. i have to create the update function. But still have one question: How????
in class root
public void update(){
maindebug("update"); // This is my debug function
}
public void run(){
while(isRunning){ // isRunning is a boolean variable
SystemClock.sleep(100);
update();
}
}
and inside onCreate
run();
but it doesnt work :(
© Stack Overflow or respective owner