Vishnu Pradeep
Vishnu Pradeep

Reputation: 2097

Does java-me support threading?

does java-me support threading ? can you give me an example code that execute a function in another thread.

Upvotes: 2

Views: 282

Answers (3)

Naveed
Naveed

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

kgiannakakis
kgiannakakis

Reputation: 104188

If you are referring to J2ME, then it does support threading. See an article here.

Upvotes: 0

Matthew Flaschen
Matthew Flaschen

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

Related Questions