Android app doesn't support button click to jump to a new window #1678
Unanswered
xihuaxixuegui
asked this question in
Q&A
Replies: 1 comment
-
The error message is telling you exactly what is going wrong: Android doesn't support creating secondary windows. It doesn't matter that this is legal on desktop platforms - Android and iOS don't support creating an instance of Window other than the main window for the app. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I run the app under the window, click the button to successfully jump to a new window, package and install it on the Android tablet, the same button clicks can't jump to the window, the error displays:W/python.stderr:
File "/data/data/com.example.helloworld/files/chaquopy/AssetFinder/requirements/toga/handlers.py", line 80, in _handler
W/python.stderr: File "/data/data/com.example.helloworld/files/chaquopy/AssetFinder/app/helloworld/app.py", line 130, in button_handler1
W/python.stderr: File "/data/data/com.example.helloworld/files/chaquopy/AssetFinder/app/helloworld/app.py", line 34, in init
W/python.stderr: File "/data/data/com.example.helloworld/files/chaquopy/AssetFinder/requirements/toga/window.py", line 182, in init
W/python.stderr: File "/data/data/com.example.helloworld/files/chaquopy/AssetFinder/requirements/toga_android/window.py", line 39, in init
W/python.stderr: RuntimeError: Secondary windows cannot be created on mobile platforms
Beta Was this translation helpful? Give feedback.
All reactions