Android API 30 leads black screen

Hello!

Yesterday I have updated my game with an increase in the api version to 30 and many of my players only started seeing black screens instead of playing.

I found this thread with a similar problem https://community.stencyl.com/index.php?issue=1996.0, but if I understood correctly, then there is no solution. Please, help.

You can try the workaround. Adding in AndroidManifest.xml android:allowNativeHeapPointerTagging="false" as it explain here : https://source.android.com/devices/tech/debug/tagged-pointers

In OpenFL you should copy AndroidManifest.xml in your project and after that in project.xml to set this tag : <template path="AndroidManifest.xml" rename="app/src/main/AndroidManifest.xml" /> with the path ot the AndroidManifest.xml

I suggest to copy original manifest file from the Lime , example here : https://github.com/haxelime/lime/blob/develop/templates/android/template/app/src/main/AndroidManifest.xml

I used the AndroidManifest by your link and the problem was partially solved, but it seems that the game opens in portrait mode, although I specified landscape in the manifest android:screenOrientation=“sensorLandscape”.
On other API versions everything still works correctly. What could be the reason?

I’m not sure. Did you try to set only landscape , not sensorLandscape ?

Hello!

After switching to api 30 i still have rendering issues.
On some devices, the picture is scattered, rendered in pieces. Especially during twins or when rendering large objects. Some players have faced a black screen. Sometimes crashes happen.
It seems to occur at random times or on random devices. But some players face this all the time. I haven’t come up with any pattern yet.
It is especially disappointing that there was no such problem on API 29.

Please, those who faced a similar problem, help.photo_2022-02-18_01-13-48 photo_2022-02-18_01-13-53

1 Like

Does the size of the picture exceed 2048? The recommended size is within 2048.

No, the maximum size in our game is 1920