On Sat, Oct 23, 2010 at 4:57 AM, chcat <[email protected]> wrote: > I have activity class running infinite loop in BackgroundAsyncTask
The AsyncTask is designed for a "task", something that will run for a short while and end. If you want a long-running background thread, I recommend you fork your own thread. > I have a problem trying to "finish" this activity, when i press > "btnClose" the activity window disappears Please let the user exit the activity using the BACK button. There is no need to have a separate UI widget for this. > Any idea where is null pointer exception coming from and how to do it > right? Based on the code that you posted, your socket is null, because you never open one. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

