3

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)?

Thomas Braun
  • 505
  • 3
  • 14

1 Answers1

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