• Breaking News

    Friday, July 23, 2021

    Android Dev - Weekly Anything Goes Thread - July 23, 2021

    Android Dev - Weekly Anything Goes Thread - July 23, 2021


    Weekly Anything Goes Thread - July 23, 2021

    Posted: 23 Jul 2021 06:00 AM PDT

    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]

    Coroutines (Part I) – Grasping the Fundamentals

    Posted: 23 Jul 2021 04:23 AM PDT

    Wrote a VPN Client app using Jetpack Compose

    Posted: 23 Jul 2021 07:01 AM PDT

    As we are getting close to the stable release of Jetpack Compose, I decided to write a real-world app with it. What could be better than writing another VPN Client app :P

    So introducing Gear VPN, an open-sourced VPN client based on OpenVPN completely written using Jetpack Compose. For app features, you can check the Google Play description.

    Here is a quick preview of animation being played when you connect to a server (This is completely done through Animatable & other Compose animation APIs).

    ![](https://www.dropbox.com/s/fszhf4onpqcej6d/preview.png?dl=1)

    https://youtu.be/TEkI86sKuT0

    Google Play: https://play.google.com/store/apps/details?id=com.kpstv.vpn

    Github: https://github.com/KaustubhPatange/Gear-VPN

    Let me know if you have any questions!

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

    Optimizing Your Kotlin Build

    Posted: 23 Jul 2021 07:09 AM PDT

    #poorvisions volume 1: Making a run animation with Sugam. Things in this video appear easier than they are! Here's how we make Jason run. Bringing you our newest series #poorvisions to show you quick versions of how we make our games. Watch this series of videos for some fun game dev content.

    Posted: 23 Jul 2021 07:53 AM PDT

    Is anyone here using Google Maps SDK v3 Beta in production?

    Posted: 23 Jul 2021 07:15 AM PDT

    Hi all,

    I've been working on a map app with google maps sdk and for a long time and I've been getting many memory issues on many devices. Just a bare map ends up consuming 300-550 MB. So I thought to try out the new v3 sdk which is still in Beta. My initial profiling seems to show that they've handled the memory issue well since the memory usage seems to be under 180-200 MB approximately.

    However, I'm skeptical to use the sdk in production and hence I'm looking for feedback from anyone who is using it in prod. My primary questions are

    1. Are OOM issues happening?
    2. Are there weird crashes happening which are unexplained and unresolved issues?
    3. Is the experience of using it (from users perspective) majorly different in any way?
    4. Are all functionalities from v2 working just the same or not?

    Thanks.

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

    Help me to find the best course on Android Dev.

    Posted: 23 Jul 2021 05:57 AM PDT

    Hey, Devs. I recently completed my OOP and Data Structures course in Kotlin language. Now is the time to step into android development. But as a beginner, I don't know which course is best for me. As thousand of Android courses are in udemy, and I can't figure out which to choose. Would people suggest to me the best project-based learning? Plus, please also tell me which Android topics I should learn, like jetpack, retrofit, MVVM. Please help.

    submitted by /u/Winter-Protection-62
    [link] [comments]

    Android parse JSON Key dynamically

    Posted: 23 Jul 2021 05:55 AM PDT

    JSON stands for JavaScript Object Notation. It is an independent data exchange format and is the best alternative for XML. As a refresher, there are four main components of a JSON file: JSON array, JSON object, Key, and Value.

    Usually, we need to get the value of the specified key. But the key is sometimes vital, and you need to get it like some Currency Exchange APIs. In this article, we will know how to parse a key dynamically by tackling two examples.

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

    Gut "apply changes"? Yay, or nay?

    Posted: 22 Jul 2021 04:12 PM PDT

    A few years ago I predicted that "apply changes" would suffer the same issues as "instant run". I didn't anticipate that its usage would be forced on everyone with no option to turn it off.

    I ran a poll on Google+ back in the day about "instant run". The votes to remove it and the eat the increased build time were in the clear majority (more significant if you keep in mind how bad build speeds were back then).

    I'm running another poll here now, because my team and I have lost so much time to "apply changes" not actually applying changes (or just doing something so completely wrong) that it probably has offset any benefit that it brings.

    I know the party line is to "file a bug", but at a certain point you just have to acknowledge that this idea isn't going to work out. These bugs are ephemeral, hard to debug, and most importantly hard to detect since they masquerade as problems with your own code.

    I have been a good citizen and filed bugs when possible (and I'm not the only one, see here, and here for example), yet there's always another right around the corner (I've been dealing with a particularly nasty one the past few days with Kotlin inline classes).

    I won't even get into the fact that your debug builds have all this bytecode manipulation going on, making it difficult to trust what you're running (and encountering the occasional crash in the "apply changes" code itself).

    I'd honestly be fine without a replacement, and the project I work on is pretty large.

    I'm still undecided on how much I hate "live literals", but it's trending towards the "I hate it very much" end of the spectrum.

    View Poll

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

    Level-up your custom Views

    Posted: 22 Jul 2021 09:22 PM PDT

    Question: Test automation team & Espresso UI tests

    Posted: 22 Jul 2021 11:02 AM PDT

    Hello

    I'm curious to hear your and your company's experience how test automation engineers interact with the app codebase and also how Espresso helps vs Appium. At our organization our automation engineers want to migrate to Espresso test because of speed and flexibility of the native testing framework. However, there are several aspects like, Espresso tests are part of the app source code. This is not a problem, can be handled in various ways, maybe mirror a repo for automation engineers. I'm more interested what is your experience, how Android engineers interact with automation engineers, where test are located, do test engineers feel happy about Espresso framework?

    Thanks

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

    Android 12 comes with an exciting theme engine called Monet. Google is also advertising android 12 with a tag Material You. Also there are many new apps that are using this feature. The main question is how the app are integrating this with their new app? Is there any api available for this?

    Posted: 22 Jul 2021 10:53 AM PDT

    Introducing Voyager: a pragmatic navigation library for Jetpack Compose

    Posted: 22 Jul 2021 10:18 AM PDT

    Android Suspendable Dialogs

    Posted: 22 Jul 2021 01:56 PM PDT

    https://github.com/xeinebiu/android-suspend-dialogs

    Android Helper library for Alert Dialog to cooperate with coroutines and avoid callbacks.

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

    Effective extension function refactoring in Kotlin: companion object use case

    Posted: 22 Jul 2021 12:05 PM PDT

    Text to speech conversion using React Native Expo (Android & IOS)

    Posted: 22 Jul 2021 07:36 PM PDT

    How to see assembly code of compiled Java method?

    Posted: 22 Jul 2021 09:16 AM PDT

    I think it's useful to see at result assembly code when you do benchmarks to see whether possible runtime optimization is applied or not. While searching the information about that, I've found nothing. Only how to compile assembly code to Android applications. But I need opposite thing.

    I know that JVM can do that, and there are many articles about it.

    DEX (or Dalvik byte code) shows absolutely nothing. Many optimization are done on runtime level while JIT compiles method.

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

    No comments:

    Post a Comment