Android Studio

How to Rename package in Android Studio

In your Project pane, click on the little gear icon. Uncheck / De-select the Compact Empty Middle Packages option Your package directory will now be broken up in individual directories Individually select each directory you want to rename, and: Right-click it Select Refactor Click on Rename In the Pop-up dialog, click on Rename Package instead of Rename Directory Enter the new name …

How to Rename package in Android Studio Read More »

Android Studio Improve performance tip

Enable Offline Work:1. Click File -> Settings. Search for “gradle” and click in Offline work box.2. Go to Compiler (in same settings dialog just below Gradle) and add –offline to Command-line Options textbox. Improve Gradle PerformanceAdd following two line of code in your gradle.properties file.org.gradle.daemon=trueorg.gradle.parallel=true Increasing the value of -Xmx and -Xms in studio.vmoptions file-Xms1024m-Xmx4096m-XX:MaxPermSize=1024m-XX:ReservedCodeCacheSize=256m-XX:+UseCompressedOops

How to take a screenshot in Android Studio

Take a screenshot On many Android devices, you can capture a screenshot with a key-combination: Simultaneously press-and-hold Power and Volume-down. You can also capture a screenshot with Android Studio as follows: Run your app on a connected device or emulator. If using a connected device, be sure you have enabled USB debugging. In Android Studio, select View …

How to take a screenshot in Android Studio Read More »