• Breaking News

    Friday, February 5, 2021

    Android Dev - Weekly Anything Goes Thread - February 05, 2021

    Android Dev - Weekly Anything Goes Thread - February 05, 2021


    Weekly Anything Goes Thread - February 05, 2021

    Posted: 05 Feb 2021 06:00 AM PST

    Here's your chance to talk about whatever!

    Although if you're thinking about getting feedback on an app, you should wait until tomorrow's App Feedback thread.

    Remember that while you can talk about any topic, being a jerk is still not allowed.

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

    I made a Simple Expense Tracker built to demonstrate the use of modern android architecture component with MVVM Architecture

    Posted: 04 Feb 2021 09:35 PM PST

    Material Components Release 1.3.0

    Posted: 04 Feb 2021 06:19 PM PST

    N26 Path to Anvil

    Posted: 05 Feb 2021 03:37 AM PST

    IntelliJ for Apple Silicon works well in the meantime

    Posted: 05 Feb 2021 04:12 AM PST

    I have a macbook air m1, and I have been using IntelliJ for the past month and it works pretty well. It is super smooth and code suggestions and auto complete is really fast, much faster than my windows machine with a Intel 7700k. Its also very stable and doesn't hang up as it usually did for me while using other machines. From my experience the downsides are:

    - you need Android Studio installed so you can point to its embedded JDK if you use Room for example. At least in my experience, I could not compile with Azul jdk 8 or 11, or the embedded IntelliJ jdk. Building won't be as fast as it will be when there is android studio full support for apple silicon but it will be the only slowish part of development (its relatively fast to older high end laptops from years before even when running in rosetta). Maybe you don't need any of this if you don't use Room, and in that case you will be flying with the compile times.

    - you need to use the android gradle plugin to 4.0.1 which, I think, is the latest one supported by IntelliJ

    - you won't have specific features available in Android Studio

    Otherwise its a pretty good experience for people who love their mac m1 and want it to be their main development machine.

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

    Is Android Studio autocompletion broken?

    Posted: 05 Feb 2021 02:23 AM PST

    Is Android Studio autocompletion broken?

    I've been noticing this issue for quite a while now. The autocompletion seems to be completely unaware of context, sometimes even semantic correctness.

    If I start typing "retur" it will not prioritise "return" (only after I type the full word will "return" become the first one). Same thing for many other very common types, methods, keywords. Often times it doesn't even take types into account.

    I remember IJ being touted as having very intelligent autocomplete, but this is seriously making me waste time with obviously wrong autocompletions.

    Well, at least I hope the GPT-powered autocomplete will make things actually usable, when it releases.

    https://preview.redd.it/guxlxy1yxmf61.png?width=1096&format=png&auto=webp&s=ecdb5eb3556d97ee7a0804259d3e0530b574d328

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

    What version of AGP are you using for your production app?

    Posted: 05 Feb 2021 06:52 AM PST

    Optional extra questions:

    • How often do you update?
    • What prompts you to update?

    View Poll

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

    UX for Devs

    Posted: 05 Feb 2021 06:38 AM PST

    I have seen that many of us devs know (or are learning to) how to build technically functional applications. But that isn't enought to solve the user's problem as it should. Many times we make an app just to see that it's not used as we imagined, why is it?

    After studying UX a lot it's easier to see that a good app is MUCH more than a functional and bug-free app.

    I have always been helped by the community and I want to be able to contribute with UX knowledge focused on applications, 100% free.

    I want to talk about topics like:

    * How to choose an idea to make an app and how to proceed in this way

    * Design and usability (receiving a design from a designer or not, we need to understand what are the characteristics of a good app) (spoiler: it's not just being beautiful)

    * Tips on building the app (app metrics , good patterns, etc.)

    ---

    I do not want to waste my time if this is not a real need, so I ask you to comment if you would like content of this type aimed at developers (mainly for mobiel apps) and how you prefer to receive this content. If you want, also comment what are the topics that you want to know more or what is the biggest difficulty he has in that area.

    If there is a real need, I will make a first post this weekend.

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

    Disable notch and round corners after changing resolution via adb.

    Posted: 05 Feb 2021 01:45 AM PST

    Hi everyone, i hated the 19.5:9 ratio, so i changed it via adb to be 16:9 fhd. But the notch and rounded corners (Xiaomi mi 9 lite) moved with it, so i had to compensate for it with extra height and used the double notch in developer settings, which gives me 16:9 without notch. (Notch has 127px, so i went 1920 + 2 x 127 and my height is now 2174).

    Is there an adb command to give me a pure, rectangular screen (to make the phone think it doesnt have a notch and round corners. To disable it)? I hate the new form of smartphones.

    Thanks!

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

    Is it bad to put app with very few downloads on my resume?

    Posted: 04 Feb 2021 07:46 PM PST

    Is it bad to put the name of the app I made with few downloads on my resume? I am a first year student so I feel that having made an app will make me stand out, and I make the app because it is a tool that I need so I use it everyday, but it does not have a lot of downloads.

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

    Any resource for learning how to setup CameraX with a custom cropRect matching a rectangle on screen?

    Posted: 05 Feb 2021 08:32 AM PST

    I'm using CameraX and I'd like the images produced by the camera to have their cropRect set to the coordinates of some rectangle on screen, so that any picture taken or passed to the image analysis use case is already cropped instead of being full size with useless borders.

    So far I've found a handful of apps and code samples that at first glance might do the trick, but the documentation, as always, is lacking or non existant. Given that I'm currently quite burnt out on reading and understanding other people's code on my own, isn't there some properly explained and relaxing blog post/video I can dive into?

    Unfortunately the majority of searches for cropping images results in this library or similar ones, which couldn't be farther from what I actually need. Many thanks.

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

    Datastore (Architecture component)

    Posted: 05 Feb 2021 08:31 AM PST

    Can we implement Datastore in a java based android application? if yes then how?

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

    Whatis the best android development course in 2021?

    Posted: 05 Feb 2021 08:05 AM PST

    I'm taking a class for developing android apps but it sucks a lot, so I need to follow another course so I dont fail, which one would you recommend?

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

    Where to get background images UI?

    Posted: 05 Feb 2021 07:43 AM PST

    I'm a beginner coder trying to make an app and I don't know how to use photoshop or design anything.

    Where can I get some ''background'' for my app?
    Things like this : https://assets.materialup.com/uploads/f095a595-435c-44ba-a1ae-1623e12c9717/preview.png
    The background patterns with the question marks. Is there any website where I can get some background?

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

    App crashes when installed from Google Play, but not from computer?

    Posted: 05 Feb 2021 06:33 AM PST

    As the title suggests, I successfully (and easily) installed my app to my phone from my computer and everything worked perfectly, but for some reason the app refuses to work when downloaded from the Play Store. Since I don't have any way (that I know of) to read the error log on my phone, I can only imagine the error is with the APK itself, but I have no idea what it could be.

    I would love some feedback on this, it's been very frustrating. Thank you.

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

    How to get context in MVVM?

    Posted: 05 Feb 2021 04:47 AM PST

    Since using context inside viewmodel is not a recommended way, I am somewhat stuck. I need to use the following code inside viewmodel

    Namemanager namemanager=Namemanager.getInstance(context)

    name=namemanager.getname()

    Here name is a mutablelivedata.

    So my questions are

    1. Where should i put this code ? In Model or Viewmodel or in Repository in order to use context, because using context in viewmodel is highly discouraged
    2. How do i get a context here ?. I don't know how to get a context outside of an activity or fragment
    submitted by /u/Professional_Mud_376
    [link] [comments]

    New Language Features Preview in Kotlin 1.4.30

    Posted: 04 Feb 2021 09:41 AM PST

    The JVM Backend Is in Beta

    Posted: 04 Feb 2021 09:41 AM PST

    PSA: How to find which libraries are from JCenter

    Posted: 04 Feb 2021 08:56 AM PST

    PSA: How to find which libraries are from JCenter

    As we already know, JFrog will end services for Bintray, JCenter, GoCenter, and ChartCenter on May 1st.

    Based on this action, probably now it is a good time to find which Android libraries we are using in our projects are from JCenter and file bugs for them to update (or maybe find alternative for legacy ones).

    So here is a tip on how to find out, based on this tweet from Jake Wharton:

    1. Move all jcenter() declaration on Gradle's repository to the last position (after google(), mavenCentral() etc)
    2. Run ./gradlew build --scan
    3. Gradle will build your app and ask your permission to generate a report
    4. Open the report and go to "Dependencies" tab
    5. Click on "# repositories"
    6. Click on Bintray JCenter>Dependencies and check these libraries

    Here's the report from my personal app:

    https://scans.gradle.com/s/vinqikqve74wm/dependencies/repositories?repoToggled=W1syXSxbMiwwXV0

    https://preview.redd.it/6kpd681wqhf61.png?width=1882&format=png&auto=webp&s=909ab97c9cdfdb9a236a6c2df4f10084a30c6ce4

    As we can see, all my Koin, Groupie and some JetBrains-related dependencies are downloaded from JCenter.

    I hope this could help you! 😊

    [EDIT] At the moment the scans.gradle.com website seems down (524)

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

    Securing Personally identifiable information in Android using Jetpack Security

    Posted: 04 Feb 2021 08:37 PM PST

    Save information while emulator is running

    Posted: 04 Feb 2021 07:47 PM PST

    I have an issue, for example if I have app that has folders and I click each folder to add an item, it will open a new activity. However if I press back on the emulator and reopen that folder, the items I added in are gone. I'm trying to figure out how to implement it so that when I go to a different activity, the items from the previous activity I added in are still there

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

    Introducing Mavericks (MvRx) 2.0

    Posted: 04 Feb 2021 02:20 PM PST

    Kotlin 1.4.30 Is Released With a New JVM Backend and Language and Multiplatform Features

    Posted: 04 Feb 2021 09:38 AM PST

    Android studio on a M1 macbook air is terribly slow

    Posted: 05 Feb 2021 01:44 AM PST

    https://reddit.com/link/ld3uej/video/ge2pnvs6rmf61/player

    Most of the apps on an apple silicon mac works quite well than expected. However, the android studio did not.

    It show horribly slow response speed, laggy background processing and completely not helping autocomplete because of slow indexing speed.

    I suspect the problem is based on the slow execution speed of the JIT compiler of a m1 mac. I don't know of its detail, though.

    So anyone has the same problem with mine?

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

    Publishing Android libraries to MavenCentral in 2021

    Posted: 04 Feb 2021 07:56 AM PST

    No comments:

    Post a Comment