Black screen when changing device orientation

I am developing an application in Android 2.2.

When changing the orientation of the device (by turning the device) the black screen is painted within my activity (there is not even a name for the activity), it takes a few seconds (7-15 seconds), and then the activity is finally painted.

I tested its emulator and two different devices, and the behavior is the same.

In LogCat, I have the following output:

02-02 09:18:06.044: WARN/WindowManager(1300): MyActivity freeze timeout expired.

02-02 09:18:06.044: WARN/WindowManager(1300): Force clearing freeze: AppWindowToken{4515af88 token=HistoryRecord{44f52458 com.project.package/.MyActivity}}

02-02 09:18:08.054: WARN/WindowManager(1300): Window freeze timeout expired.

02-02 09:18:08.054: WARN/SurfaceFlinger(1300): timeout expired mFreezeDisplay=1, mFreezeCount=0

02-02 09:18:08.054: WARN/WindowManager(1300): Force clearing orientation change: Window{45178a00 com.project.package/com.project.package.Activity paused=false}

I do not know why this is happening. Thanks for the comments, suggestions, answers.

+3
source share
1 answer

Thanks for the comments, sorry for the late reply.

, , ( 2000 ListView). , .

, 2000 , , !.

, Android- ( , , , ).

, , ( ), - , , , ,

onPause(), .

: Activity. : ( Activity).

, .

+3

Source: https://habr.com/ru/post/1789501/


All Articles