• Breaking News

    Tuesday, July 28, 2020

    Android Dev - We’re on the engineering team for Android Studio. Ask us Anything! (starts July 30)

    Android Dev - We’re on the engineering team for Android Studio. Ask us Anything! (starts July 30)


    We’re on the engineering team for Android Studio. Ask us Anything! (starts July 30)

    Posted: 23 Jul 2020 09:11 AM PDT

    We're on the engineering team for Android Studio, and we are excited to participate in another AMA on r/androiddev on Thursday, July 30!

    For our launch of the Android 11 Beta, we introduced #11WeeksOfAndroid, and next week is Week 7, in which we'll focus on Android Developer Tools.

    Also as part of the Android 11 Beta launch, we announced Android Studio 4.1 Beta and 4.2 Canary, and released an overview video and demo of the latest features in action. The preview versions of Android Studio have a host of new features and include behind the scenes polish and stability work.

    For this AMA, we want to answer your technical questions about Android Studio. Please note that we want to keep the conversation focused strictly on the engineering and usage of Android developer tools.

    We'll start answering questions on Thursday, July 30 at 12:00 PM PDT / 3:00 PM EDT (UTC 1900) and will continue until 1:20 PM PDT / 4:20 PM EDT.

    Feel free to submit your questions ahead of time. This thread will be used for both questions and answers. Please adhere to our community guidelines when participating in this conversation.

    Here are some topics we're looking forward to talking about, but feel free to ask anything!

    • Android Studio
    • Android Gradle Plugin & Toolchain
    • R8/D8
    • Apply Changes
    • Android Emulator
    • App Performance Tools
    • UI Design Tools
    • Constraint Layout & Motion Layout
    • Kotlin Tools
    • C++ Tools
    • Jetpack Compose Tools

    Participants from the Android team:

    • Adarsh Fernando (u/adarshf) - Android Studio Product Manager
    • Arif Sukoco‎ (u/roboarif) - Android Studio C++ Tech Lead
    • Chris Sinco (u/csinco) - Android Studio UX Lead
    • David Herman (u/adt_dherman) - Data Binding Tech Lead
    • David Winer - (u/davidwiner) Kotlin Product Manager
    • Diego Perez (u/nosuid) - Layout Editor Tech Lead
    • Esteban de la Canal (u/estebandlc) - Apply Changes Tech Lead
    • Frank Yang (u/lfy_google) - Android Emulator Tech Lead
    • Jamal Eason (u/easonj) - Android Studio Product Manager
    • Jeffrey Van Gogh (u/jvg_googler) - Android Studio Tech Lead, & Kotlin
    • Jerome Dochez (u/jdochez) - Gradle Plugin Tech Lead
    • Jon Tsao‎ (u/twilligy) - Android Studio Product Manager
    • Karen Ng (u/nkaren) - Android Studio Product Director
    • Mads Ager (u/madsager) - Android Studio Compiler Tech Lead
    • Nicolas Roard (u/nicolasroard) - Design Tools & ConstraintLayout Tech Lead
    • Raluca Sauciuc‎ (u/raluca_sauciuc) - Android Studio Tech Lead
    • Renaud Paquay‎ - Android Studio Tech Lead
    • Scott Swarthout (u/scottswarthout) - Android Studio Product Manager - Motion Tools
    • Shukang Zhou (u/shukang) - Android Studio Profiler Tech Lead
    • Tor Norbye (u/tnorbye) - Engineering Director for Android Studio
    • Wojtek Kaliciński (u/wkalicinski) - Android Developer Relations
    • Xavier Ducrohet (u/droidxav) - Tech lead for Android SDK
    submitted by /u/AndroidEngTeam
    [link] [comments]

    discussion on recent remote interviews

    Posted: 28 Jul 2020 03:58 AM PDT

    For multiple reasons, I have recently been wanting to change jobs. I have been doing Android dev since now about 6 years. I don't have an engineering background, I have a masters in Statistics, and I don't have any education at all in computer science, I am self-learned. I do not lie about this in my CV.
    Recently I have had many online interviews for Android developer jobs with the same scenario: they bring up the online coding thing and I am asked to solve some algo problem such as reversing a binary tree (for the easiest), or optimising the complexity of an existing algorithm. at the same time, I am not asked a single question on Android at all. I understand that these companies want some high-level engineering people, but why put through all the recruiting process with someone for an Android dev job if they are clearly looking for engineers? I admit, I am not an engineer, my solving problems skills have some limits (which can probably be compensated with a google search) but I still have a scientific approach and tend to always look for optimal solutions to a problem. nevertheless, these companies will probably end up recruiting a very talented person who might not know much on android development rather than a great android developer which will deliver a top quality app in little time.
    let me guys know what you think about this.

    submitted by /u/iamafraidicantdothat
    [link] [comments]

    Android Notification All-in-One

    Posted: 28 Jul 2020 03:54 AM PDT

    I recently did a study to evaluate dynamic updates to string resources in Android. It was a fun experiment to fall into rabbit hole of Resources and LayoutInflater. Wrote about it here.

    Posted: 28 Jul 2020 07:49 AM PDT

    Game dev tutorials for a beginner?

    Posted: 28 Jul 2020 07:41 AM PDT

    Hi there! I am hoping to make an Android game. Although I am familiar with Java and using eclipse, I have no experience with XML code or Android Studio. Are there any tutorials you would recommend? Appreciate any help!

    submitted by /u/hoeface3
    [link] [comments]

    I finally wrote the last article about my first app! It shows how I reverse engineered my bus stop service to make my own app!

    Posted: 27 Jul 2020 02:02 PM PDT

    ViewPager2 — digging the internal API to make it work with DiffUtil

    Posted: 28 Jul 2020 06:37 AM PDT

    Does anyone know what is the correct way to handle failed acknowledgement after purchase is success?

    Posted: 28 Jul 2020 05:08 AM PDT

    According to

    We need to acknowledge a success purchase.

    But, what if the acknowledgement failed? Should we retry the acknowledgement? But how? Should we still allow user to access the in-app purchase item?

    Thanks.

    submitted by /u/yccheok
    [link] [comments]

    For Android Devs that work on a team, how often are you answering messages on Slack/discord/etc?

    Posted: 28 Jul 2020 06:55 AM PDT

    Having hard time with Emulators and Android Studio on Linux

    Posted: 28 Jul 2020 06:06 AM PDT

    I have an optimus laptop (hybrid graphics) with 8GB of RAM running Fedora. I want to run emulator using hardware acceleration since I have limited RAM. If I am to run emulator with iGPU whole machine becomes slow since

    Android Studio Java VM instance (~2.0) + Gradle daemons (~.92 GB) + emulator (~2.1) >= 5 GB approximately.

    In order to make things worse overtime AGP seems to be spawning new gradle daemons which was reported here, and overtime AS JVM instance also seems to getting bigger.

    When machine is low on RAM it turns to swap which makes things slow and finally totally freezing, so I have to hit power button. Having to make change and waiting to see the result and your machine freeze. This makes Android dev totally unhappy experience. In order to do work for a while have to keep eye on the gradle daemons and kill unused ones manually or restart android studio time to time.

    Devs do not have phones from each API version so they have to rely to emulators for testing sometimes.

    I have enabled KVM, Virtualization, Emulator settings set to hardware acceleration. Still emulator takes about 2 GB and start to make things slow.

    • Was anyone able to use dGPU with emulator on Linux?
    • Am I the only one having hard time with emulators and Android Studio? What is the case in Window and MacOS?
    • It seems to be you need at least 16 GB RAM to do Android Dev comfortably? May be need at least 16 cores?
    submitted by /u/nerdy_adventurer
    [link] [comments]

    Introducing the Motion Editor

    Posted: 27 Jul 2020 06:05 PM PDT

    Here's my sample project using the version 3.0 of the Paging Library!

    Posted: 28 Jul 2020 09:02 AM PDT

    Is it fine to set the Min API Level to 21 (Android 5.0)?

    Posted: 28 Jul 2020 08:47 AM PDT

    So, I think most Android users have at least version 5.0 of the Android, but of course, some people are still using older versions.

    When I wanna create a new project in AS and set the min SDK to 21, it says that the app will run on approximately 94.1% of devices.

    BTW, do u think it's fine to set the min SDK to 21? Or should I keep it at something like 17 or 19? (I know it depends on the content, but think of a very simple app that doesn't have expensive functions)

    View Poll

    submitted by /u/hadifaridhadi
    [link] [comments]

    Android Room library. How Update DAO works?

    Posted: 28 Jul 2020 01:32 AM PDT

    Hi, I'm learning Android Room library and I found @Update annotation in DAO class. Here's the method:

    @Update void updateUser(User user);

    How is it going to update your table? We don't have WHERE clause. Should I use the same User object that I used during inserting to have the same id?

    submitted by /u/Danil_Ochagov
    [link] [comments]

    The Google Codelabs tutorial is incredibly out of date

    Posted: 28 Jul 2020 07:22 AM PDT

    I am so frustrated right now....

    I am trying to learn some basic Android development in Java with Android Studio to make a small personal project to try and help me get a job as a new grad....

    Things were going great but slow using Google's codelabs tutorial on Android development, until I skipped a couple lessons and tried to learn RecyclerView. I got stuck here and went backwards and instead tried to start clickable images. Now I am brick-walled.

    First off, the tutorial tells you to make a new project with the Basic Activity template. Okay, easy. Then it states that in content_main.xml, there should be a Hello World TextView, which the tutorial wants you to delete. However, upon making a Basic Activity template app, there is no TextView to delete...only a "Fragment", which has not been introduced yet in the tutorial. Moreover, when I try and delete this Fragment to do what the tutorial says, I just get "unresolved class android.support.v7.widget.RecyclerView" errors when I try and follow Section 2.1 here. Okay fine, I'll do some Googling and figure it out...except I cannot find anything relevant online, no other nubs facing the same problem I have.

    Is there a better and more relevant/up to date tutorial out there? Or is this it? This tutorial really is not good after the first 2 chapters.....I'm tired of wasting 3 hours a day trying to figure out what got updated and changed since the tutorial was created, I need to spend more time job hunting and interview prepping.

    submitted by /u/stangytangy
    [link] [comments]

    Updated: Material Design in Practice - A repo to make material theming simple to understand and get started with.

    Posted: 28 Jul 2020 07:03 AM PDT

    Best book/resource to learn Android in Kotlin language?

    Posted: 28 Jul 2020 07:00 AM PDT

    As I'm completely familiar with Kotlin language now using it for a while, and I got a decent computer (I previously had a very old and bad computer that takes 5+ minute to open Android studio and a build takes 20+ minutes so I didn't learned the Android that much in Java, and now I'm far away from Java now) so I was thinking if I can start Android in Kotlin now.

    I tried to find about this topic in Google but most results were about "Kotlin for Android developers", not about "Android for Kotlin developers".
    Can somebody provide a good resource where I can learn Android in Kotlin now?

    submitted by /u/lycheejuice225
    [link] [comments]

    Real Time Object and Collision Detection in Mobile Application

    Posted: 28 Jul 2020 05:32 AM PDT

    Hi

    I am trying to develop a mobile application that uses camera to detect objects and give warnings to prevent collisions.

    Could you guys please suggest me what platform I could use for developing the mobile application? I was thinking of using Flutter.

    Additionally, if there are any tips or suggestions - I am open to those.

    submitted by /u/mishaalnaeem
    [link] [comments]

    Design Tools Suite UX enhancements in Android Studio 4.1

    Posted: 27 Jul 2020 04:01 PM PDT

    Anyone know a way how to save all external libraries into the project

    Posted: 28 Jul 2020 03:52 AM PDT

    Hi! So I have a lot of libraries in my project, like maybe almost 100, and I'm downloding all from maven. Does anyone know a way to save them/cache them into the project and also being able to upload them on git, so if lets say I'm trying to run the app offline then I don't need to download them again? And maybe just when I have internet to do the downloading part. Is there another way than downloading all of them manually from maven and adding each one of them into the project?

    submitted by /u/superdumnezeu
    [link] [comments]

    Android project template that enables Gradle Kotlin DSL.

    Posted: 27 Jul 2020 07:09 PM PDT

    How does apps add features without being deribitly updated by the user? Example- Instagram added whole of the "reels* feature without having users to update the app!

    Posted: 27 Jul 2020 06:51 PM PDT

    Need app ideas! Alot of free time but 0 ideas!

    Posted: 27 Jul 2020 02:43 PM PDT

    Hi there!

    I am a beginner at creating apps,with 4 months, and i want to put my studies at practice but i need ideas!

    I have alot of free time but with 0 ideias on mind. I asked my friends, my family and 0 ideias were given xD

    My goal is to practice and plce the ads on play store/app store to have finished products.

    So any ideas are welcome!

    Thanks

    submitted by /u/drking100
    [link] [comments]

    What's new in Compose Design Tools

    Posted: 27 Jul 2020 10:33 AM PDT

    No comments:

    Post a Comment