Plugin Android Device Monitor

preface

Recently, in the process of debugging the application using Android Studio3.3, you need to use Android Device Monitor, but you can’t find the entry on the interface, I think the previous version exists. Official explanation:

Android Device Monitor was deprecated in Android Studio 3.1 and removed from Android Studio 3.2. The features that you could use through the Android Device Monitor have been replaced by new features. The table below helps you decide which features you should use instead of these deprecated and removed features.

Android Device Monitor is being deprecated and developers are being recommended to use the new features instead. Refer to [official website] for details. (https://developer.android.google.cn/studio/profile/monitor) are accustomed to using Android Device Monitor of developers, each time the trigger Monitor directory is not very convenient. So, integrating it into the Android Studio interface in the simplest way is a relatively good solution.

To prepare

  • Development environment: Intellij IDEA
  • Development manual: Intellij Official Docs
  • Reference projects: Intellij-Onlinesearch, SVGtoAndroid

demand

  • Work environment (Windows, Mac Pro)
  • The Android Studio main screen starts
  • A single configuration

The source code

AndroidDeviceMonitorPlugin

plugin.xml

If you don’t know what kind of menus are grouped, you can right click in the margin of the Android Studio main Tools menu

Click “Customize Menus And Toolbars” And see the contents below

SettingsConfigurable

LaunchMonitorAction

conclusion

  • First Intellij Plugin: Java interface development is long forgotten
  • Simple function, relatively simple logic, but plug-in development should have a lot of ways
  • Read more official documents and success stories

This article was created by onlyloveyd under a creative Commons attribution 4.0 international license. All articles on this site are original or translated except for attribution/source. Last edited March 16,2019