Re: [android-developers] how to stop a progressbar which is runs using a thread?

2011-03-23 Thread JayasriRani Kunapareddy
hai can i have code for dynamic expandable list view similar to dynamic list view On Wed, Mar 23, 2011 at 11:39 AM, gaurav gupta wrote: > hi guys, > in my application, m using a progrssbar that show the current progress of a > song.i need to stop the song as well as progressbar too. progressbar s

Re: [android-developers] how to stop a progressbar which is runs using a thread?

2011-03-23 Thread Filip Havlicek
Hi gaurav, use setProgress(0), setMax(0) or whatever suits you. But please, do NOT use threads like that unless you really know what you are doing. Why don't you use for example AsyncTask to do all the threading work? You just initiate it, start the music playback in it and update the ProgressBar,

Re: [android-developers] how to stop a progressbar which is runs using a thread?

2011-03-23 Thread gaurav gupta
Hi Laxmi, m using progress bar., = ProgressBar progressbar; progressbar=(ProgressBar)findViewById(R.id.progressbar); in this progressBar.setsetCanceleable(true) is not wroking it works with progressDialog. i also need to

Re: [android-developers] how to stop a progressbar which is runs using a thread?

2011-03-22 Thread Laxmi Verma
Hi Gaurav, Just set the property progressBar.setCanceleable(true) and call the method progressBar.cancel() while stopping the thread. It will stop the progress bar. Hope it helps Thanks!! On Wed, Mar 23, 2011 at 11:39 AM, gaurav gupta wrote: > hi guys, > in my application, m using a progr

[android-developers] how to stop a progressbar which is runs using a thread?

2011-03-22 Thread gaurav gupta
hi guys, in my application, m using a progrssbar that show the current progress of a song.i need to stop the song as well as progressbar too. progressbar should be reach at starting point and song should be stop. * class* myThread *extends* Thread *implements* Runnable{ *private* *volatile* *boo