Does java-me support threading?
does java-me support threading 开发者_StackOverflow社区? can you give me an example code that execute a function in another thread.
Using Threads in J2ME Applications
Example:
public class DoAnotherThing extends Thread {
public void run(){
// here is where you do something
}
}
and Run it like this:
DoAnotherThing doIt = new DoAnotherThing();
doIt.start();
Yes. Even the minimal Connected Limited Device Configuration has it. That page has an example, and some of the examples you find for the desktop will also apply.
If you are referring to J2ME, then it does support threading. See an article here.
精彩评论