java-me支持线程吗?你能给我一个在另一个线程中执行函数的示例代码吗?
发布于 2010-11-01 15:50:52
Using Threads in J2ME Applications
示例:
public class DoAnotherThing extends Thread {
public void run(){
// here is where you do something
}
}像这样运行它:
DoAnotherThing doIt = new DoAnotherThing();
doIt.start();发布于 2010-11-01 15:49:56
是。即使是最小的连接有限设备配置has it。该页面有一个示例,您为桌面找到的一些示例也将适用。
发布于 2010-11-01 15:50:04
如果你指的是J2ME,那么它确实支持线程。请参阅文章here。
https://stackoverflow.com/questions/4067321
复制相似问题