aspose file tools*
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
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: 5843
    
    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
 
 
subject: How to stop handler or thread