[android-developers] Re: Data values not populating in the gridview on screen orientation using onConfigurationChanged

2011-10-26 Thread Studio LFP
Regardless of which way you choose to go, configChanges or not, you'll want to cache any response you receive via HTTP. There are a lot of ways to cache these items. You could use static variables, save them temporarily to files on the internal or external (SD Card), add them to a database,

[android-developers] Re: Data values not populating in the gridview on screen orientation using onConfigurationChanged

2011-10-25 Thread Shajahan
Hi Steven, Thanks for the response. I wanted to know, whether is there any approach to handle this situation. I don't want to invoke the HTTP connection every time on the onCreate() method for screen orientation(intentionally or unintentionally by the user)because then that's beats the user

[android-developers] Re: Data values not populating in the gridview on screen orientation using onConfigurationChanged

2011-10-24 Thread Studio LFP
Are you repopulating the information into the new layout you are switching to? Regardless of if you use configChanges or not, you need to repopulate your view. This is automatically invoked without configChanges since your app interface is removed and remade (calling onCreate again for you).