This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes Android and the fly likes How to stop handler or thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "How to stop handler or thread " Watch "How to stop handler or thread " New topic
Author

How to stop handler or thread

tawisak ruksuwan
Greenhorn

Joined: Jun 24, 2011
Posts: 3
My program is random string
First i press button for start and then it will random
Second i press same button again for it stop how can i do??

my code



this is XML

This is array.xml insert in to folder values

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5852
    
    7

tawisak, welcome to Java Ranch!

Why do you want to press a button twice? Why not just press the button once and then display a random sentence?


JBoss In Action
tawisak ruksuwan
Greenhorn

Joined: Jun 24, 2011
Posts: 3
because i want to start random and stop it same button. How can i do it
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to stop handler or thread
 
It's not a secret anymore!