[android-developers] Re: How to save AsyncTask class object in onSaveInstanceState()

2012-12-11 Thread Brian Hoffmann
Hi, Basically you cannot "reuse" an instance of AsyncTask, in the sense of starting it again. As soon as the task is finished you can only get the results out of it and throw it away. And I guess the latter is what you need to be able of after a configuration change happened. You can "re-attac

[android-developers] Re: Send SMS every x minutes

2012-11-29 Thread Brian Hoffmann
You are calling Thread.sleep() in the onClickHandler of your send button. Besides that, you're also trying to do all the repeated message sending in that handler. This is most likely to fail because this way you are blocking the UI thread. You shouldn't do any long running actions in the main t

[android-developers] Re: Replacing double whitespace with single whitespace

2012-11-14 Thread Brian Hoffmann
It might be better to use a meaningful regular expression. Or you could try to first remove all whitespaces and then add one between each pair of non-whitespaces. Besides, this isn't actually an Android-related question, is it? Am Dienstag, 6. November 2012 14:49:26 UTC+1 schrieb Solo: > > Given

[android-developers] Re: SMSmanager SMS getting sent only once and only after reboot

2012-11-14 Thread Brian Hoffmann
> the issue is that the sms gets sent only once Why would you want the SMS to be sent automatically more than once? I guess, if you need it to be sent more often, you need to actually send it again through SMSManager. and that too after I restart the phone Are you saving the newly created