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

2-24-21 Sony Electronics Launches FX3 Full-Frame Camera for Cinematic Look and Enhanced Operability for Creators

2-24-21 HP is buying gaming accessory brand HyperX for $425 million

2-24-21 Oppo's fancy Find X3 smartphone may have leaked online

2-24-21 Samsung will give you 100 days to try a Galaxy Z Fold 2 or Galaxy Z Flip 5G

2-23-21 iPhone 13 rumors: Apple could be adopting another feature Android has had for years

2-23-21 Samsung now updates Android for longer than Google does

2-23-21 LinkedIn is down so you can’t add anyone to your professional network

2-23-21 Anker beats Apple to market, new iPhone 12 MagSafe-compatible battery pack now available

2-23-21 Huawei’s new $2,800 foldable phone copies Samsung’s Galaxy Fold line

2-23-21 Sony is working on a new PlayStation VR headset for PS5

2-22-21 Perseverance rover beams back images from Mars after historic landing

2-22-21 Samsung's leaked concept videos may show its vision for AR glasses

2-22-21 Microsoft Word is getting text predictions next month

2-22-21 Alexa-enabled printer, Amazon’s first product from Kickstarter-like program Build It, hits preorder goal

2-22-21 3 things Android 12 can do that Android 11 can't

2-22-21 Apple Surpassed Samsung as World's Largest Smartphone Maker in Fourth Quarter

2-22-21 30,000 Macs infected with new Silver Sparrow malware

2-22-21 Samsung begins rolling out potentially life-saving smartwatch update

2-21-21 Samsung Galaxy Tab S7 Lite and A7 Lite tipped for a June launch

2-21-21 Apple Spring event is coming — but when will we see new iPad Pro, iPad mini 6 and AirTags?

2-21-21 WhatsApp to move ahead with privacy update despite backlash

2-21-21 iPhone 12 Pro Max vs. Galaxy S21 Ultra: Apple's and Samsung's luxe phones compared

2-20-21 Perseverance beams back first images of Mars

2-20-21 Samsung's future smartwatch is rumored to use Android, not Tizen

2-20-21 Ranked: Best browsers for privacy

2-20-21 New malware found on 30,000 Macs has security pros stumped

2-20-21 This is our first look at Android 12’s wallpaper-based theming system

2-20-21 Israel’s first university-made nanosatellite launches into space

2-19-21 Apple Updates Platform Security Guide, Says Kernel Extensions Won't Be Supported on Future Apple Silicon Macs

2-19-21 iOS 14.5 is on the way. What we know about a release date and new features

2-19-21 Stacked widgets and a new look for the lock screen may be coming to Android 12

2-18-21 Android 12 might finally solve one of the most annoying smartphone problems

2-18-21 LG Reportedly Assisting Apple on Foldable Display Development

2-18-21 Tim Cook says Apple is working on something that will be even bigger than the iPhone

2-18-21 Apple's M1 Mac Mini falls to an all-time low of $600 on Amazon

2-18-21 Apple TV now available on Chromecast with Google TV

2-18-21 Microsoft’s next major Windows 10 update focuses on improving remote work

2-18-21 Samsung’s One UI 3.1 update brings select Galaxy S21 features to older Samsung phones

2-17-21 The Top 10 Fastest-Growing IT Jobs By Salary In 2021

2-17-21 Masslogger Swipes Microsoft Outlook, Google Chrome Credentials

2-17-21 This file-sharing app with over a billion downloads has some major security flaws

2-17-21 IDC: Worldwide Chrome OS sales surpassed macOS in 2020

2-17-21 Roku is Making Moves to Offer Original Content

2-17-21 The Mac mini with the M1 processor is discounted at several retailers

2-17-21 YouTube TV will add 4K streaming, more simultaneous streams for an additional price

2-17-21 Samsung Galaxy S21 owners should update now — here’s why

2-17-21 The 5 best free password manager alternatives for LastPass on Android

2-16-21 After two months, the iOS version of the YouTube app is finally updated

2-16-21 Second February update seemingly addresses Samsung Galaxy S21 battery drain issue

2-16-21 Chrome OS may soon make it a lot easier to access your Google Photos

2-16-21 Motorola's two new cheap phones bring a huge change to the Moto G line

2-16-21 iPhone 13 Rumored to Include Always-On Display With 120Hz ProMotion, Astrophotography Capabilities, Stronger MagSafe, and More

2-16-21 A year on, all-in-one Microsoft Office iPad app finally available