This Android Monitor window displays log activity from my phone, so I can see stack trace, etc. when my program crashes. Fortunately my program usually runs without crashing. :-) However this means the window is not useful to me most of the time.
How can I prevent Android Monitor from opening automatically on every time I Run Project?
For now, I've just resized it to be very small.
You can detect currently foreground/background application with ActivityManager. getRunningAppProcesses() which returns a list of RunningAppProcessInfo records. To determine if your application is on the foreground check RunningAppProcessInfo.
Click File > Settings (on macOS, Android Studio > Preferences) to open the Settings dialog. In the left pane, expand the Editor section and click Inspections. Click the checkboxes to select or deselect lint checks as appropriate for your project. Click Apply or OK to save your changes.
For Android Studio 1.4
go to Run
-> Edit Configurations
expand Defaults
and click on Android Application
(or just for the current app, pick the top Android Application
node)
switch to Miscellaneous
tab
uncheck the Show logcat automatically
option
You can open the window anytime by Alt/Opt+6
.
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