Improvements to the documentation for android support #7365
KaruroChori
started this conversation in
Ideas
Replies: 1 comment
-
|
You can open a pr to improve it. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
Right now, the documentation to compile a simple demo for android is pretty much not functional.
https://xmake.io/examples/cpp/graphics/android.html#android-application
At the very least it does not provide enough steps for replication.
To be fair, this was my first time compiling something for android, and surely that did not help.
I was able to make it work, but it took a couple hours of debugging in an unfamiliar environment.
Basically the issues I encountered:
ALooper_pollAll. The application compiles and links but when running it fails, and only inspection on the device logs tells us that dynamic linking of that symbol failed.ALooper_pollAllis actually no more on modern android versions now there isALooper_pollOnce.app_dummyis deprecated too, so maybe it should be better removed.android:exportedsettruefor the activity in the manifest.xmake/xmake/rules/platform/android/package.lua
Line 66 in e1c9477
Describe the solution you'd like
Suggested fixes described above.
I am surely not experienced but I can share my functioning demo with the disclaimer that I only barely know what I am doing 😄 .
Describe alternatives you've considered
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions