Black screen on launch
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Black screen on launch
Hi,
I am using LC 9.0.1, minimum 4.2, app launches with a black screen for 1~2 sec on Samsung Galaxy S6 edge, 4~5 sec on Samsung J2, 10~15 sec on samsung Tab2, 8~12 sec on lenovo tab. (*seconds are measured roughly.) Stack executes some works on preopenstack. for example setting properties, fullscreenmode etc..
The thing is there was no black screen with delays before the update. (I used LC 7)
Can I add a splash screen to mask this black screen issue?? I've tried to attach a splash screen but the splash screen image was not visible on the launch.
How can I remove this long delays with a black screen?
Regards,
Louis
I am using LC 9.0.1, minimum 4.2, app launches with a black screen for 1~2 sec on Samsung Galaxy S6 edge, 4~5 sec on Samsung J2, 10~15 sec on samsung Tab2, 8~12 sec on lenovo tab. (*seconds are measured roughly.) Stack executes some works on preopenstack. for example setting properties, fullscreenmode etc..
The thing is there was no black screen with delays before the update. (I used LC 7)
Can I add a splash screen to mask this black screen issue?? I've tried to attach a splash screen but the splash screen image was not visible on the launch.
How can I remove this long delays with a black screen?
Regards,
Louis
-
- VIP Livecode Opensource Backer
- Posts: 7228
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Black screen on launch
There is something similar in the bug database here: https://quality.livecode.com/show_bug.cgi?id=21511 You can try setting acceleratedRendering to true to see if that helps.
Also try moving some of the setup commands to other handlers to reduce the time users have to wait for the screen to be drawn. PreOpenStack can set fullscreenmode, acceleratedRendering and maybe a few other global properties. PreOpenCard should set any properties that affect the visual appearance of the card. Then on openCard set any properties that aren't visible, such as dealing with custom properties, setting up a database or internet connection, or anything else that happens behind the scenes. That way the screen will draw earlier and the user will have a shorter wait.
Android doesn't have a built-in splash screen, so if you want to display one it will have to be the first card of the stack (or if you use a launcher app it would be the launcher card.) If you do it that way then you could let the user wait until your setup is complete, but you should show a progress bar so they know the app hasn't hung.
My preference would be the first method. Users generally don't wait more than 3 or 4 seconds before they think something is wrong. A long splash screen isn't much better than a long black screen.
Also try moving some of the setup commands to other handlers to reduce the time users have to wait for the screen to be drawn. PreOpenStack can set fullscreenmode, acceleratedRendering and maybe a few other global properties. PreOpenCard should set any properties that affect the visual appearance of the card. Then on openCard set any properties that aren't visible, such as dealing with custom properties, setting up a database or internet connection, or anything else that happens behind the scenes. That way the screen will draw earlier and the user will have a shorter wait.
Android doesn't have a built-in splash screen, so if you want to display one it will have to be the first card of the stack (or if you use a launcher app it would be the launcher card.) If you do it that way then you could let the user wait until your setup is complete, but you should show a progress bar so they know the app hasn't hung.
My preference would be the first method. Users generally don't wait more than 3 or 4 seconds before they think something is wrong. A long splash screen isn't much better than a long black screen.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Black screen on launch
Hi Jacque,
I tried all options. But non of them are effective. I even removed all handlers on preOpenStack, on OpenCard, yet a black screen and a same delay occur.
Cheers,
Louis
I tried all options. But non of them are effective. I even removed all handlers on preOpenStack, on OpenCard, yet a black screen and a same delay occur.
Cheers,
Louis
-
- VIP Livecode Opensource Backer
- Posts: 7228
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Black screen on launch
I wonder if it's the Samsung issue reported here: https://quality.livecode.com/show_bug.cgi?id=21618
Do you have any other Android device to test with?
Edit: Oops, I see you used a Lenovo tablet. I'd report the problem to the bug database.
Do you have any other Android device to test with?
Edit: Oops, I see you used a Lenovo tablet. I'd report the problem to the bug database.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Black screen on launch
I have Samsung Note2, Kobo, Le Pan tablet as well. Also, they show the same issue.
4~5 sec on Le Pan tablet(model name: TC802A) (android 4.4.2)
15~20 sec Kobo arc 7HD (android 4.2.2)
4~5 sec on Samsung Note2 (android 4.4.2)
2 sec on Samsung Galaxy S6 edge (android 7.0)
4~5 sec on Samsung J2 (android 5.1.1)
10~15 sec on samsung Tab2 (android 4.2.2)
8~12 sec on Lenovo tablet 10 inch (android 4.4.2)
Cheers,
Louis
4~5 sec on Le Pan tablet(model name: TC802A) (android 4.4.2)
15~20 sec Kobo arc 7HD (android 4.2.2)
4~5 sec on Samsung Note2 (android 4.4.2)
2 sec on Samsung Galaxy S6 edge (android 7.0)
4~5 sec on Samsung J2 (android 5.1.1)
10~15 sec on samsung Tab2 (android 4.2.2)
8~12 sec on Lenovo tablet 10 inch (android 4.4.2)
Cheers,
Louis
-
- VIP Livecode Opensource Backer
- Posts: 7228
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Black screen on launch
When you make a bug report, include a link to this thread. It will save the team some time since they can see what you have already tried.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Black screen on launch
I did it. Thanks!
-
- Posts: 641
- Joined: Tue Jul 29, 2014 12:52 am
- Location: Brazil
Re: Black screen on launch
Hi, anyone found a solution to this? I'm experiencing the same problem on a device running Android 5.1. I've tried the tricks suggested on the bug reports with no success.
BTW I'm running LC 9.0.2 build 15152
Cheers
BTW I'm running LC 9.0.2 build 15152
Cheers
Simon
________________________________________
To ";" or not to ";" that is the question
________________________________________
To ";" or not to ";" that is the question
Re: Black screen on launch
Unfortunatly no (with LC 9.02)simon.schvartzman wrote: ↑Mon Dec 24, 2018 7:49 pmHi, anyone found a solution to this? I'm experiencing the same problem on a device running Android 5.1. I've tried the tricks suggested on the bug reports with no success.
BTW I'm running LC 9.0.2 build 15152
It might work if you use 8.10
With LC 9.02, even with a stack without any native field... i still have the black screen. But when compiled with LC 8.1.10 it's okay.
I will update the bug report :
https://quality.livecode.com/show_bug.cgi?id=21511