Hi Ravi.. Thanks for the information.. I have already done in a different method anyway...
On Fri, Feb 19, 2010 at 1:03 PM, ivar <[email protected]> wrote: > you have to save the necessary data as part of the bundle in the > method, onSaveInstanceState and onCreate(bundle), you should if there > is any data in the bundle. if there is get the data from the bundle > and use that data. > > -Ravi > > On Feb 18, 1:29 pm, sid <[email protected]> wrote: > > Hi All, > > > > For changing from portrait to landscape mode i have done some changes > > in manifest.xml and included some code in test.java file > > > > In manifest.xml i have included <activity_name > > android:configChanges="orientation"/> > > > > i entered some data in portrait mode. > > but when i rotate my mobile from portrait to landscape the control > > goes to onConfigurationChanged() method. > > > > public void onConfigurationChanged(Configuration newConfig) > > { > > super.onConfigurationChanged(newConfig); > > setContentView(R.layout.screen1_landscape); > > > > } > > > > in the above method im displaying one more new screen.. > > here is the problem that the data entered in portrait mode is not > > retrieving in landscape mode.. > > > > Please let me know where am going wrong??? > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- 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

