This discussion is archived
0 Replies Latest reply: Mar 19, 2010 9:06 AM by 807581 RSS

stop thread with Command - back to the main menu

807581 Newbie
Currently Being Moderated
Hi,

I currently work with a Samsung SGH 700 and I have a problem with threads :

I have a main class (Midlet class extend) which call threads when a command is pushed like a menu :
commandAction (Command c)
{
if (c == x)
{
thread1.Start();
}

else if (c == y)
{
thread2.start();
}
My threads implement CommandListener but what shloud I write in the thread class to do something like :
commandAction (Command c)
{
if (c == back)
{
this.thread  -> Stop
curent display -> midlet display
}
Thanks for helping :)