Re: [android-developers] stopping a thread after particular time.

2012-03-02 Thread Chalavadi Sagar
you can asynctask just extend your class with asynctask ,check the condition(if it finds any location then return true there) in the doinbackground() method of asynctask and then dismiss the progressbar in postexecute()method of asynctask. Ch.B.Sagar. On Fri, Mar 2, 2012 at 12:39 PM, Narendra

Re: [android-developers] stopping a thread after particular time.

2012-03-02 Thread TreKing
On Fri, Mar 2, 2012 at 12:26 AM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: May you please suggest any good tutorial for it? Google it - I assure you, you will find plenty of information on the topic.

[android-developers] stopping a thread after particular time.

2012-03-01 Thread Narendra Singh Rathore
Hi all developers, I am showing progress bar, before getting current GPS location (using Thread) in case if location is null. Now, my requirement is to dismiss the progress dialog in case if location is unavailable even after the specified amount of time, and perform something else in that case.

Re: [android-developers] stopping a thread after particular time.

2012-03-01 Thread TreKing
On Thu, Mar 1, 2012 at 10:52 AM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: I guess, I need another thread for performing that event after specified time, or stopping the previous thread. You don't need multiple threads, use AsyncTask.

Re: [android-developers] stopping a thread after particular time.

2012-03-01 Thread Narendra Singh Rathore
You don't need multiple threads, use AsyncTask. Thanks Treking for the suggestion. But, I am new for using AsyncTask. May you please suggest any good tutorial for it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

Re: [android-developers] stopping a thread after particular time.

2012-03-01 Thread Chalavadi Sagar
better you use handler if your finds out any location then just call the handler.sendEmptyMessage() from there and handle that message and dismiss the progress bar in the handleMessage() method of handler. Ch.B.Sagar. On Fri, Mar 2, 2012 at 11:56 AM, Narendra Singh Rathore nsr.curi...@gmail.com

Re: [android-developers] stopping a thread after particular time.

2012-03-01 Thread Narendra Singh Rathore
better you use handler if your finds out any location then just call the handler.sendEmptyMessage() from there and handle that message and dismiss the progress bar in the handleMessage() method of handler. Thanks Sagar, Plz suggest if there exists any other possible method for achieving my