I just downloaded Android Studio for Linux from: http://developer.android.com/sdk/installing/studio.html
I'm wondering how to print to the console?
Neither System.out.print(...)
nor Log.e(...)
from android.util.Log
seem to work.
Print to Console in Python. To print strings to console or echo some data to console output, use Python inbuilt print() function. print() function can take different type of values as argument(s), like string, integer, float, etc., or object of a class type.
Run your application in debug mode by clicking on
in the upper menu of Android Studio.
In the bottom status bar, click 5: Debug
button, next to the 4: Run
button.
Now you should select the Logcat
console.
In search box, you can type the tag of your message, and your message should appear, like in the following picture (where the tag is CREATION
):
Check this article for more information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With