I'm having a strange problem here. When I start my application I log the result of Thread.currentThread().getName(): it says "Thread-2".

Then, I create a form with commands, classic stuff; when I click a command, I log again the result of Thread.currentThread().getName(), and this time I get "Thread-1".

I was under the impression that my entire application was executing in a single thread, unless I create other threads myself. I keep hearing about "the UI thread", isn't that the one created at startup and that should be the one and only application thread?

What's going on ? How many more threads should I expect? And, do I have to start worrying about synchronizing stuff? This is on a Nokia 6131 by the way.

(ah, the irony of clicking on "submit new thread"....)