How can I kill a Thread instance in Midlet?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anna_Hovhannnisyan
Posted On:   Friday, June 20, 2003 05:58 AM

To save some date in midlet I create an instance of SaveThread. If I what to abort saving process, I should kill this thread.

class SaveThread extends Thread{
}

Does anybody know, how to kill a thread in J2ME?

anna

Re: How can I kill a Thread instance in Midlet?

Posted By:   Adi_Lev  
Posted On:   Thursday, August 7, 2003 01:27 AM

Add a boolean flag that is check in a loop
and set it to abort!
(This replaces thread.stop)
About | Sitemap | Contact