I am developing an android game with openfl.
When I test it on my phone, it starts up fine. Now if I deactivate the game app and return to it after a short while it shows a black screen for less than a second then returns to the game.
However, if the game app stays in the background for around 10mins, then if I open it up again it shows a black screen, then the game comes up after waiting for 15 seconds or it doesn't come up at all - just a black screen. (At this point, android is not frozen since I can pull down the notification bar.)
Also there is a music in the game, and it does resume playing during the black screen.
Does any one have any idea what could be going wrong here?
Upgrading openfl to 4.4.1 and lime to 3.4.1 get rids of this problem.
Related
After building the game and sending it to my phone as an apk and then installing it. Then I launch the game and it works.
But, after exiting the game, the second time it's launched, it seems to freeze at the splash screen. After the unity logo disappears, it looks like the screen is resizing itself, as the background image of the splash screen which seems to be frozen gets a little bigger on a side of the screen (when landscaping)
So far I have attempted:
Modifying the manifest, I got nothing.
Changing Unity versions, I got nothing. The only version that seems stable and runs properly it's 2019.2.21f1, I am using this version because of my hardware limitations. I am also using 2019.4, but it's not a big difference, and I get the same problem.
Disabling Optimised Frame Pacing but nothing.
I also tried different API levels, Gradle versions, and JDKs. All that can be updated and downgraded but still nothing.
I am running an app built in Flutter on Pax A920 device with Android 7.1.2 installed.
Whenever the keyboard appears, the screen jumps down, and shows parts of the current view above the screen. When I dismiss the keyboard, everything goes back to normal.
This behaviour can be seen in the photo below. Sorry for the image quality, I cannot take screenshots on this device.
Photo of the unexpected behaviour
I cannot really show any code examples since this happens every time the keyboard appears, from different screens with different navigation stacks.
This works fine on iOS devices and on the Android emulators I have tried, so clearly this has something to do with the device/OS I'm running this on.
Has anyone experienced this or something similar and has an idea of how to prevent this?
I have developed an app using xamarin forms. everything works fine. but the problem now is whenever I launch the app on an android emulator or on any android device, it runs. but then when it's idle for a few seconds, say 15secs,
it stops displaying. the screen goes blank(it displays a white page with nothing on it). then I have to close the app and reopen it for it to continue displaying. what could possibly be the cause?
if I launch the app and I click all the buttons fast enough, the app keeps working but if I delay, it then hangs. No more frontend display.
I made my first hello world app, launched it on my smart watch (Gear Live), and it looks fine.
But then, as soon as my finger touches the screen, my watch turns into a pure black screen, and my hello world app is gone. There is nothing in Logcat, not a single word.
Is there a debug setting on this or something that I overlooked?
EDIT: Did more tests, out of 20 times I launched this app from Android Studio, all 20 of them showed "Hello World" on my watch, and 17 of them crashed when I tap anything. 3 of them did not crash when I tap, and they do not crash no matter what I do (until I swipe from left, which closes it).
I have created few Sencha touch 2.3 apps and packaged them for Android and iOS using Cordova.
One issue that I have not been able to resolve is, when you launch the app, you will see a black screen after which your Splash screen appears. Has anyone managed to solve this issue? I would like to directly show the splash screen without the black screen in between. This happens on Android.
Also, even if you create a starter app using sencha app generate... If you try to package that app, it takes minimum of 4 seconds before your view is loaded and displayed. Is there any way to speed up this? When the skeleton app takes 4 seconds to load, you can imagine other real apps that are bigger in size, they take 6-8+ seconds to load !
Use the splashscreen plugin from Cordova and hide it after 250ms of the launch of your app.
basically inside the app.js - launch:
var browserEnv = Ext.browser.is;
if (browserEnv.WebView && browserEnv.Cordova) {
Ext.defer(function () {
Ext.device.Splashscreen.hide();
}, 250);
}
Your problem with start time of the app:
I do not have this, as my empty apps start within 2 seconds therefore you might want to check on the size of your app and resources.
What is the size of your apk. If it is larger than 0.45 MB for an empty you definately want to look into it.