Android Studio is the official IDE for Android application development, based on IntelliJ IDEA. On top of the capabilities you expect from IntelliJ, Android Studio offers the following among many others:
.apk
file generationIf you're new to Android Studio or the IntelliJ IDEA interface, this section provides an introduction to some key Android Studio features.
By default, Android Studio displays your project files in the Android project view. This view shows a flattened version of your project's structure, which provides quick access to the key source files of Android projects, and helps you work with the Gradle-based build system. The Android project view:
The Android project view shows all the build files at the top level of the project hierarchy under Gradle Scripts
. Each project module appears as a folder at the top level of the project hierarchy, and contains these four elements at the top level:
java/
: Source files for the modulemanifests/
: Manifest files for the moduleres/
: Resource files for the moduleGradle Scripts/
: Gradle build and property filesFor example, the Android project view groups all the instances of the ic_launcher.png
resource for different screen densities under the same element.
The project structure on disk differs from this flattened representation. To switch back to the segregated project view, select your project from the Project drop-down menu.
Android Studio provides a memory and CPU monitor view so that you can easily monitor your app's performance and memory usage to track CPU usage, find deallocated objects, locate memory leaks, and track the amount of memory the connected device is using. With your app running on a device or emulator, click on the Android tab in the lower-left corner of the runtime window to launch the Android runtime window. Click on the Memory | CPU tab.
When you're monitoring memory usage in Android Studio, you can initiate garbage collection, and dump the Java heap to a heap snapshot in an Android-specific HPROF binary format file at the same time. The HPROF viewer displays classes, instances of each class, and a reference tree to help you track memory usage and find memory leaks.
Android Studio allows you to track memory allocation as it monitors memory use. Tracking memory allocation allows you to monitor where objects are being allocated when you perform certain actions. Knowing these allocations enables you to adjust the method calls related to those actions to optimize your app's performance and memory use.
3.147.74.211