pbreault / adb-idea

A plugin for Android Studio and Intellij IDEA that speeds up your day to day android development.
Apache License 2.0
2.1k stars 256 forks source link

New feature: Get active activity name #74

Open ignaciogs opened 6 years ago

ignaciogs commented 6 years ago

Hi, iI think that is feature is very interesting and with this command you can get the active activity name on the screen.

adb shell dumpsys activity activities | grep mFocusedActivity | cut -d ' ' -f 6 | grep -o '[^.]*$'

Thanks by this plugin, it's great.

EarlOfEgo commented 6 years ago

I disagree, since this command is never changing you can just use your terminal for it. Imo ADB-Idea always works with the current app and operates on this context. Don't get me wrong, it's a good idea and I didn't know it exists but I just think it isn't a good fit into the plugin.