GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [Android] Blank screen when a new activity adopts a shared root view before the old one stops · Issue #11615 · NativeScript/NativeScript Open DescriptionIssue DescriptionRuntime bug on Android. An app that uses one root view across activities can show a blank screen when it is reopened. Android can start a new activity before the old one stops. The new activity adopts the root view, and then the old activity's An app reaches this state when Expected behavior: the reopened app shows its page. Related case with the same cause:
Apps with no main entry have a separate failure on a quick reopen. I saw blank screens in Angular and Vue apps, and possibly Solid. I reproduced the blank screen with Related:
ReproductionUse import { Application, Frame } from '@nativescript/core'; let root: Frame; Application.run({ create() { if (!root) { root = new Frame(); root.navigate({ moduleName: 'main-page' }); } return root; }, });
The same blank screen appears with Back and an immediate reopen. On the main page, run: adb shell "input keyevent KEYCODE_BACK; am start -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -n org.nativescript.ToolBox/com.tns.NativeScriptActivity"Each of these two commands gave a blank screen in 5 of 5 trials. The app stayed in focus, the screen was still blank after 15 seconds, and the app did not crash. Waiting 5 seconds between Back and the reopen does not reproduce it with this Relevant log output (if applicable)Android event log for Back with an immediate reopen. The new activity starts before the old one stops: wm_on_create_called: [199554052, com.tns.NativeScriptActivity] wm_on_start_called: [199554052, com.tns.NativeScriptActivity] wm_on_stop_called: [260012955, com.tns.NativeScriptActivity] wm_on_destroy_called: [260012955, com.tns.NativeScriptActivity] Environment
Reacted by Dylan Llewellyn Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |