开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜