I have a problem with changing orientation or to be more clear -
keeping the portrait orientation.
As a first Thing in my onCreate() method I set:

            @Override
            public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.third);

        
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);

And it seem to be working on first glance - i rotate the phone but the
screen stais in portrait. However:

1. reactions to button and opening new activities are slowed down
significantly.

2. Much more serious is that when one of my activities starts it goes
through the onCreate method but then gos to the onPause() method,
onStop, onDestroy and at the end again into onCreate. this is quite
trouble full for me because in onPause I stop the threads and
animations I started in onCreate and eventually causes the application
to crash.

Can any wan explain this to me? Why is this happening and how can I
fix those 2 problems?

-- 
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

Reply via email to