I'm using an android Java app for the GUI of my program, and am trying to debug the lower-level rust kernel for the GUI. Whereas stdout works on the java side, any printlns from rust side do not show up in the console (android studio). I'm using JNI-RS for the FFI on the rust side. Is this expected behavior? How might the problem be alleviated (without printing to files)?
Asked
Active
Viewed 551 times
1 Answers
7
For Android you have to use logcat instead of stdout (more details here and there) . The one possible way is to use android_logger or any other crate which provides logcat support.
You can found more information about stdout redirection there.

MaxV
- 2,601
- 3
- 18
- 25