Re: [android-developers] Screen rotation clears TextView

2011-02-16 Thread TreKing
On Tue, Feb 15, 2011 at 12:40 PM, David Parker wrote: > However, when the device is rotated, the Activity resets and that TextView > gets cleared. > Does anyone know what the problem might be? > Any way to make sure this Activity does not reset on rotation? > I read the "Handling Runtime Changes"

Re: [android-developers] Screen rotation clears TextView

2011-02-15 Thread Kumar Bibek
Check if the text view has a id. Normally, the framework would save all the basic values such as TextViews and Edittexts after orientation change. But it looks like you haven't specified the value of the TextView in one of the orientations. Kumar Bibek http://techdroid.kbeanie.com http://www.kbe

Re: [android-developers] Screen rotation clears TextView

2011-02-15 Thread Bambr
you have to check for onSaveInstanceState event handler and related thing - restoring application state from bundle. Google for it - should be easy to find. In general - it will allow you to save needed data and then assign it when activity is re-created after orientation change. On Tue, Feb 15, 2

Re: [android-developers] Screen Rotation

2010-12-31 Thread Kostya Vasilyev
AsyncTask can be carried through configuration changes by using getLastNonConfigurationData (or some such, I writing this from my phone). The technique was discussed on this list within the last month or two, hopefully you can find it. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 31.12.2010

Re: [android-developers] Screen Rotation

2010-12-31 Thread TreKing
On Fri, Dec 31, 2010 at 11:48 AM, Robert wrote: > The reason I want to do this is that the app is accessing a webserver via > an AsyncTask and I'd like to stop the restart until I can figure out how to > link the background task to the new pid that is created. I've read some > pages on it but not

Re: [android-developers] Screen rotation and ProgressDialog

2010-09-20 Thread TreKing
On Mon, Sep 20, 2010 at 2:01 PM, Bret Foreman wrote: > How should I handle an active ProgressDialog when the screen is rotated? > If you use showDialog(), it gets managed for you. - TreKing

Re: [android-developers] Screen Rotation

2010-07-16 Thread TreKing
On Thu, Jul 15, 2010 at 11:09 PM, 7H3LaughingMan wrote: > I have no clue on how to set it up so that when it rotates that it doesn't > recreate everything and re-fetch the data and process it again. > Review the Activity Lifecycle and then go here: http://developer.android.com/reference/android/a

Re: [android-developers] Screen rotation counter clockwise

2009-11-02 Thread Dianne Hackborn
Sorry this is not currently supported. On Sun, Nov 1, 2009 at 6:54 AM, Dmitry Munkov wrote: > Good day everyone! > > Is there any way to make autorotation work in both ways: both > clockwise and counter clockwise? > It's a pain when reading a book that scrolls with volume keys (HTC > Hero). > >