Black screen after presplash screen

212 views
Skip to first unread message

satyam yadav

unread,
Aug 20, 2022, 5:10:01 PM8/20/22
to Kivy users support
I have used lottie file in presplash screen which works fine but after it a black screen appears for some time and then my first screen of app gets open , why i am getting this behaviour (i dont want this black screen i just want my pre splash screen and then my usual app screen and how i can achieve it.

And other question is that app does not fit full to the screen even  i have set it to the fullscreen = 1 in bulldozer.spec file.
WhatsApp Video 2022-08-21 at 2.35.25 AM.mp4

Robert

unread,
Aug 20, 2022, 8:19:19 PM8/20/22
to Kivy users support
I don't know anything about your first question.
Or about fullscreen option
 🤣

However here is how I conditionally remove the status bar https://github.com/Android-for-Python/c4k_photo_example/blob/main/main.py#L20-L30

satyam yadav

unread,
Aug 21, 2022, 6:10:00 AM8/21/22
to Kivy users support
Set the icon and splash screen like this:

# (str) Presplash of the application
#presplash.filename = %(source.dir)s/data/presplash.png
presplash.filename = chart.jpg

# (str) Icon of the application
#icon.filename = %(source.dir)s/data/icon.png
icon.filename = chart.png

Remember to 'buildozer appclean' after the change and before the next build.

If you have a problem check that the image file types are supported for the case.

For more control of the presplash use lottie files

# (string) Presplash animation using Lottie format.
# see https://lottiefiles.com/ for examples and https://airbnb.design/lottie/
# for general documentation.
# Lottie files can be created using various tools, like Adobe After Effect or Synfig.
#android.presplash_lottie = "path/to/lottie/file.json"

I  referred this answer of yours for android_prespalsh_lottie but then for some time screen gets black and afterwards the app functions starts so i am asking that how i can remove the black screen , you can see the video i attached in above question

Robert

unread,
Aug 21, 2022, 12:57:40 PM8/21/22
to Kivy users support
The last line of my earlier post (which you failed to quote) said:

>  I have no experience using lottie files.

Which explains my answer above.

Moqing Yu

unread,
Aug 21, 2022, 10:59:07 PM8/21/22
to kivy-...@googlegroups.com
The first question I think you need to check the build function of your App class, if the build function need to do a lot time costed task before it return, it will show you a black screen before you main widget showed.

-- 
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/019ebd82-4c01-457e-a9f0-f845bb3ac8cdn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages