Maybe because you are calling this:
super.onConfigurationChanged(newConfig);
?
On Saturday, August 18, 2012 1:42:12 AM UTC-5, nitin gupta wrote:
>
> i use<activity android:name=".LoginOnline" android:configChanges="
> orientation|keyboardHidden" > in activity in manifest file.
> and override method in activity TO PREVENT ACTIVITY RECREATE.
> @Override
> public void onConfigurationChanged(Configuration newConfig) {
> String userr = user.getText().toString();
> String passs = pass.getText().toString();
> boolean rme = rememberme.isChecked();
> setContentView(R.layout.loginonline);
> login = (Button) findViewById(R.id.loginonline);
> user = (EditText) findViewById(R.id.username);
> pass = (EditText) findViewById(R.id.password);
> rememberme = (CheckBox) findViewById(R.id.remeberme);
> user.setText(userr);
> pass.setText(passs);
> rememberme.setChecked(rme);
> login.setOnClickListener(new OnClickListener() {
>
> public void onClick(View v) {
> // TODO Auto-generated method stub
>
> login(user.getText().toString(),
> pass.getText().toString());
>
> if (rememberme.isChecked()) {
> saveLoginDetails();
> } else {
> removeLoginDetails();
> }
>
> }
> });
>
> super.onConfigurationChanged(newConfig);
>
> }
>
> but still memory increase each time orientation changes WHY????????I AM
> USING TWO LAYOUT FOR DIFFERENT ORIENTATION.
> please give me a resolution..
>
--
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