Reputation: 2097
does java-me support threading ? can you give me an example code that execute a function in another thread.
Upvotes: 2
Views: 282
Reputation: 42093
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();
Upvotes: 2
Reputation: 104188
If you are referring to J2ME, then it does support threading. See an article here.
Upvotes: 0
Reputation: 284836
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.
Upvotes: 1