Developing in Windows you sometimes have to go back to your DOS knowledge (if you don’t know what DOS is, it was an extension to Bill Gate’s original operating system for IBM compatible PC’s). DOS has similarities to UNIX etc. UNIX based operating systems (like Androids) have been quality compared to Windows but I guess that is my opinion.
You will probably see, on internet questions, comments like you can do this easily by issuing the command “adb catlog -d” (take out quotes). If you were like me I started launching “cmd” from windows, “running as administrator” and using DOS commands like dir, cd android etc.. But in Android Studio you DON’T NEED to start of the cmd process as it has a “Terminal” Tab. Click on this and you are in a MS DOS (well that is waht I think).
There you do need to use “MSDOS like” commands. You can probably get away with two commands like “dir” (show me all the files in this directory), “cd” <directory name>. Unfortunately you have to use these commands. Why graphical user interfaces are not created for all these processes I don’t know. Consider my example above that is supposed to clear the Logcat, the command adb catlog -d. To run this you have to be in the “sdk” directory and the sub directory “platform-tools”. In this sub directory you will find the adb executable.
Well you have to start the “Terminal” from Android Studio. Keeping things simple, but slightly long winded, you have to go “cd..” to go down a sub directory and probably “cd..” again until you have reached your c drive. Then you have to find the name of the Android Directory that all your Android Studio stuff is located and the do cd <where my Android Studio Stuff is located>, followed by cd sdk to get into the sdk directory, then cd platform-tools. At last you are in the directory or folder where adb exists. No if you type adb catlog -d it will do something.
Anyway, if you have followed me. Everytime someone says on the web you just have to do this command prompt you might have more chance having read this. On the other hand I consider this easy and because of that I might have missed out some step that will confuse you. Feedback welcome 🙂
When you have done this once you will find it easier the next time. Also it will open your ability to run commands. Furthermore, when you have done it once for a session, the Terminal process within Android will remember where you are. AND HERE IS MY BIG TIP – If you press F3 tour last command will be repeated so there wont be any more typing etc.. Hope that helps 🙂