Android Studio: Tips, Best Plugins

Android Studio is Android’s official IDE. It is the best editor when it comes to writing and building Android apps.

Tips

These tips will improve your overall efficiency and performance.

Popular shortcuts

ShortcutDescription
ctrl + nSearch and open a class
ctrl + shift + nSearch and open a file
ctrl + shift + vOpen clipboard contains latest copy
alt + left/right arrowSwitch tab
ctrl + alt + lFormat code
ctrl + alt + iAuto indent lines
alt + enterThis call Intent action. It will suggest possible solutions to issues with your code based on the current cursor placement and context. When taking this action on a string, it moves hardcoded strings to resources.
ctrl + rSearch and replace
shift + F10Build and run app in emulator
alt + shift + up/down arrowMove code line up or down

Record emulator screen and convert to GIF

Besides taking a screenshot, Android Studio also allows developers to record a video of working emulator’s screen.

In Logcat tab at the bottom part of Android Studio, you can find these options when moving your mouse over the arrow icon.

  • Move your mouse over to >> option to open More actions.
  • Select Screen Record option which is the play icon.
  • Configure:
    • Bit Rate: The default is 4 Mbps.
    • Resolution: Enter a width and height value in pixels, which must be a multiple of 16. Leave it blank to use the emulator’s screen size.
    • Show Taps: Enables visual feedback for taps.
  • Click Start Recording button to record video.
  • Click Stop Recording button to stop recording.
  • Save the file as webm

If you want to convert the webm to a gif file, you need to use software like ffmpeg or online converter like http://ezgif.com or https://cloudconvert.com.

Enable Emulator within Android Studio

Starting from Android Studio 4.1, you can make the emulator appear in the editor within a floating panel. Multi-emulators are supported. You can switch between the emulators using tabs.

  1. Access File > Settings > Tools > Emulator (or Android Studio > Preferences > Tools > Emulator on macOS)
  2. Select Launch in a tool window and click OK.

Open the emulator by:

  1. Access View > Tool Windows > Emulator.
  2. Open AVD Manager then start the required virtual device.

Enable split screen

Right mouse click on the tab contains a file’s name to open a popup menu then choose Split Vertically / Horizontally feature.

Color Code Logcat

Coloring logcat will help you to separate logs inside Logcat.

  • Go to Settings > Editor > Color Scheme > Android Logcat.
  • Choose Theme then set color for each type of logcat such as Assert, Debug, Error, etc…

Best Plugins

  1. Key promoter – A plugin which shows to user how easy he can make same action using only keyboard (menus and toolbar button mouse clicks initiates shortcut display)
  2. String Manipulation – A plugin which provides actions for text manipulation, including case switching, sorting, filtering, incrementing, aligning to columns, grepping, escaping, encoding, etc…
  3. Android Material Design Icon Generator – This plugin helps you to set Material Design icons to your Android project.
  4. ButterKnifeZelezny – Simple plugin that allows one-click creation of Butterknife view injections. It requires you to latest Butterknife lib on your classpath.
  5. Android Parcelable boilerplate– This plugin can generate an Android Parcelable implementation based on fields in the class.
  6. ADB Idea – It helps and automates adb commands, including uninstall, kill, start, restart, clear an application and clear the application data and restart it.
  7. Genymotion plugin – Create and start Genymotion virtual devices from Android Studio. You must have Genymotion installed on your computer before using this plugin.
  8. Builder plugin – Generates a static nested Builder for a class.

Leave a Comment

Your email address will not be published. Required fields are marked *


Scroll to Top

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close