Output Log from Android

Asked 1 years ago, Updated 1 years ago, 89 views

I want to float log on logcat to see what algorithm I implemented and it works I tried System.out, but I can't do this. How do I display log messages on logcat?

android logging logcat

2022-09-22 11:31

1 Answers

Import android.util.Log Log.w("myApp","no network"); You can do it like this. In Log.w, the w part is the log level, myApp is the tag to find the log quickly, and the no network part is the message.


2022-09-22 11:31

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.