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.
Related
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.
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 an app in development that runs fine in the emulator but wont run on any android device, when the application icon is clicked the screen goes blank for a second then returns back to the device apps page, i have experimented with setting different permissions but it does not seem to solve the issue. Any ideas?
Ok i can replicate this all the time now with these steps:
Open the app then press back which takes me out the app.
Open the app up again and just after the splash page i get black screen and freezes.
On back press i call finish(); is this correct way to terminate the app? I can only assume something's not getting closed properly first time round and causing app not to load properly when i reopen it.
Anyone heard of this before?
i have a Phonegap and JQM app.
Problem is, if I switch to another app and then back to my app, App is completely reloaded and start again.
Is posible this disable?
Thanks for any advice.
This is happening because there is a lack of memory for the app to run. So as soon as u go to home the app dies and on opening again it reloads the app from the start. To confirm that this is indeed happening i would suggest that you close all running apps on your phone and then run your app. Im sure it would run properly even after switching to home screen and coming back.I don't think its possible to get around this behavior. Design your app so that it has a small startup time so that its usable even on phones with less ram where such problems would come.