Create Amazing Apps With Android Studio 4.0

by Tech Mainstream Staff


June 3, 2020


Create Amazing Apps With Android Studio 4.0

Google and the Google logo are registered trademarks of Google LLC, used with permission.


(Tech Mainstream) Android Studio 4.0 was recently released. New features include "a new Motion Editor to help bring your apps to life, a Build Analyzer to investigate causes for slower build times, and Java 8 language APIs you can use regardless of your app’s minimum API level."

Motion Editor On Its Own

The new Motion Editor is a "a powerful interface for creating, editing, and previewing MotionLayout animations." Instead of you normally having to create and alter xml files, the Motion Editor generates them by itself. Editing constraint sets, transitions, keyframes, and view attributes are available options for development.

New and Improved Layout Inspector

Live Layout Inspector essentially debugs your app’s UI in real-time: "With the new Layout Inspector, debugging your UI is much more intuitive by giving you access to data that stays updated with your running app and providing insights on how resources are being resolved." For devices running API 29 level or higher, "a dynamic layout hierarchy that updates as views change, detailed view attributes that also help you determine how resource values are resolved, and a live 3D model of your running app’s UI" features are also available.

Layout Validation Window

For devices with different screen sizes and resolutions the look of your UI can vary. Introducing Layout Validation window. Layout Validation window previews "layouts on different screens and configurations simultaneously, so you can easily ensure your app looks great across a range of devices."

CPU Profiler UI Upgrades

The CPU Profiler is "designed to provide a rich amount of information about your app’s thread activity and trace recordings."

Interesting CPU Profiler features include the following: Android Studio 4.0, CPU recordings are now separated from the main profiler timeline and organized in groups to allow for easier analysis, easier side-by-side analysis, for viewing all thread activity in the Thread Activity timeline, a redesigned System Trace UI where events are uniquely colored for better visual distinction, threads are sorted to surface the busier ones first, and you can now focus on seeing data for only the threads you select and investment in the quality of the CPU profiler, and a significant decrease in the user-reported error rates of recordings since Android Studio 3.6

Other Develop & Profile Features

Besides the improved CPU Profiler, other development features include Smart editor features when writing rules for code shrinking, IntelliJ IDEA 2019.3 platform update, Kotlin Android live templates and Clangd support for C++.

Build and Build

A number of build features have been introduced in the Android Studio 4. A Build Analyzer, Java 8 Language library desugaring in D8 and R8, feature-on-feature dependencies, new options to enable or disable build features, Essential support for Kotlin DSL script files and dependencies metadata are among these features.

Android Studio 4 can be downloaded at the download page. Also feedback on things you like, and issues or features you would like to see is appreciated. Follow the Android Studio development team on Twitter and on Medium.

TECH IN A SECOND

5-17-21 Intel CEO announces new $10 billion chip plant in Israel

5-17-21 DigiTimes: MacBooks With Mini-LED Displays May Be Delayed Until 2022

5-17-21 Tiger Lake-H Tested: We Benchmark Intel's Top-End 8-Core i9-11980HK

5-17-21 Microsoft Teams is finally fixing one of its most annoying features

5-17-21 Google Phone gains Caller ID announcement feature to help you manually screen calls

5-17-21 Apple Music announces Spatial Audio with Dolby Atmos; will bring Lossless Audio to entire catalog

5-16-21 Android 12 might include big changes to notifications and widgets

5-16-21 Google Pixel 6? Forget it, I’m only excited for the Google Pixel 5a

5-16-21 How to get the Windows 10 May 2021 (21H1) update

5-16-21 Apple reportedly will continue to require masks in its US retail stores

5-16-21 Google I/O 2021: Android 12, Pixel Buds and what else to expect

5-15-21 Telegram blocks Hamas

5-15-21 Twitter for iOS begins prompting users to enable App Tracking option

5-15-21 Instagram will soon let users post from its website as it continues to ignore the iPad

5-15-21 The chip shortage is driving up tech prices–starting with TVs

5-14-21 Google Assistant adds ‘Your apps’ settings menu for Android

5-14-21 Concept: How Apple could expand iPhone customization beyond widgets with iOS 15

5-14-21 PS5 restock update today: Track on Twitter, Walmart, Target and more

5-14-21 Google Pixel 6 leak shows off distinctive new design

5-14-21 Apple iPhone 13 to feature FaceID chip twice as small as the one on iPhone 12 series

5-14-21 Leaked renders reveal an even more affordable 5G Samsung phone

5-13-21 How Do I Recycle Old Cell Phones, Laptops, And Other Electronics?

5-13-21 Samsung Galaxy Watch 4 will allegedly run Wear OS but lack rumored feature

5-13-21 Security researcher exploits Find My network to send messages over any nearby iPhone’s data connection

5-13-21 WiFi vulnerability may leave millions of devices open to 'frag attacks'

5-13-21 Google I/O 2021: Android 12, Pixel Buds and what else to expect

5-12-21 Benchmarks show M1 iPad Pro offers 50% speed boost, outperforms high-end MacBook Pro

5-12-21 Newly discovered Wi-Fi vulnerabilities affect most devices, but risk is small

5-12-21 Germany just banned WhatsApp's new privacy policy, and all of the EU might be next

5-12-21 Amazon updates the Echo Show 8 and 5 with better cameras

5-12-21 Microsoft Patch Tuesday, May 2021 Edition

5-12-21 Android 12: Release date, new features and everything else we know

5-12-21 The PlayStation 5 Is Starting to Look Like the Revolution It Promised

5-11-21 Intel Launches New 11th Gen Core for Mobile

5-11-21 iPhone 13 Pro and Pro Max will have similar camera specs, leaked schematics suggest

5-11-21 Intel claims its new Tiger Lake-H CPUs for laptops beat AMD’s Ryzen 5000

5-11-21 Apple, Amazon and Google Smart Home Alliance Announces New 'Matter' Connectivity Standard

5-11-21 Google wants to know what Wear OS users think of the platform

5-11-21 Nvidia’s RTX 3050 Ti can deliver 60fps gameplay in more budget-friendly laptops