Running "adb logcat" on the command line of your PC will also work. Do you want to see the log output on the device screen? Hm why? I do not believe that you can call the shell or access the logs from the application if your device is not deployed.
What you can do, of course, is to create a TextView in your application and update its contents with any message you need.
source share