• Breaking News

    Sunday, June 20, 2021

    Android Dev - Flocking Boids 🐜 in Jetpack Compose Canvas 🚀| Flocking Algorithm [Cohesion, Alignment and Separation]

    Android Dev - Flocking Boids �� in Jetpack Compose Canvas ��| Flocking Algorithm [Cohesion, Alignment and Separation]


    Flocking Boids �� in Jetpack Compose Canvas ��| Flocking Algorithm [Cohesion, Alignment and Separation]

    Posted: 19 Jun 2021 05:10 PM PDT

    I built this JetQuotes Desktop Client using Compose for Desktop

    Posted: 20 Jun 2021 04:17 AM PDT

    Migrating from AndroidX paging 2 to 3 lets you remove so much boilerplate code, ��

    Posted: 20 Jun 2021 03:52 AM PDT

    Part 2 - Building Simple Attendance App using Kotlin - Jetpack Navigation Component

    Posted: 20 Jun 2021 06:46 AM PDT

    Hi devs, here is the second chapter about building an attendance app in kotlin. We will learn how to migrate to One Activity, multi fragments architecture, and use the Jetpack Navigation Component.

    https://mihfazhillah.medium.com/build-simple-attendance-app-in-kotlin-part-2-navigate-to-student-form-a9f519a1098c

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

    Implementing a modular architecture in Android with Navigation component and having issues with circular dependencies, fear no more!

    Posted: 19 Jun 2021 10:43 PM PDT

    a wired problem when using Navigation Component

    Posted: 20 Jun 2021 06:36 AM PDT

    Hi there, I'm using the Navigation component to navigate between destinations, I'm following the one activity multiple fragments patterns.

    Everything until now Ok but in some rare cases, I see wired behavior which is: the fragments overlay each other and the UI has totally broken and I can not figure out where is the problem.

    I'm using findNavController().popBackStack() when I want to go back programmatically.

    Any hint or tip will be most appreciated.

    https://preview.redd.it/2121m6d8bf671.jpg?width=576&format=pjpg&auto=webp&s=f23ac55b3edee42f7271bfcfb051746c8e14e313

    https://preview.redd.it/mjt6w9n8bf671.jpg?width=591&format=pjpg&auto=webp&s=fac17896c335877625a6cf72fe9d6b5bcb4109ae

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

    Google Play Store App Transfer Tutorial

    Posted: 20 Jun 2021 12:35 AM PDT

    Form correct conditions for query based on input text pattern

    Posted: 20 Jun 2021 12:10 AM PDT

    I have to search records in room sqlite with dynamic condition based user input like this

    1. Any Term Example – 1. Dog 2. Dog Cat
    2. Exact Term when user put quotes before the words – "Dog Tail"
    3. ( ) – Brackets for OR - (cat OR dog) - Parentheses indicate grouping. The example matches documents containing at least one of the terms cat or dog
    4. () with Text - (cat OR dog) zebra - Parentheses indicate grouping. The example matches documents containing at least one of the terms cat or dog, and also contain the term zebra.
    5. AND - dog AND cat - For example, dog AND cat matches documents containing both the term dog and the term cat
    6. OR - dog OR cat - The example matches documents containing at least one of either of terms cat or dog.

    This website seems to have similar function https://www.researchgate.net/search

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

    About structuring the project.

    Posted: 20 Jun 2021 12:05 AM PDT

    Hi all,

    Stuck with a problem about structuring the project. The project have almost 15+ sections and each section consist of 15 to 20 screens. mostly CRUD things. There is one base url for accessing the other base urls for each section.

    Eg: http://baseurl/metadata

    and it returns other base urls in JSON format.

    What would be the best choice to save the base urls. In Room DB or in SharedPreferences?

    And also how to structure the project?

    Currently there are three options that I would prefer.

    1. Modules for each section and the base urls from metadata api saves with the module_id in SharedPreferences. And when creating Retrofit object it access the base url from the SharedPreferences (Multiple Retrofit objects each one with particular url needed).
    2. Single module with multiple Retrofit objects each one with particular url (Urls are saved in SharedPreferences with a unique id for each section).
    3. Single module with single Retrofit object and passes the url to a method by using @Url annotation (Urls are saved in SharedPreferences with a unique id for each section).

    Using Hilt to create the dependencies. Is there any way to scope the dependencies by module or by nav_graph (Might not be possible).

    Any help would be appreciated.

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

    Dealing with an existing source code which is done in a different pattern than yours

    Posted: 19 Jun 2021 11:14 PM PDT

    Mostly when you join as a developer in an existing company, you have to work on their existing project(s) how do you manage when the coding style is different than yours? For e.g. I hate assigning short name of component like btn, edt etc

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

    Spring 2021 Stanford Android Programming Workshop

    Posted: 19 Jun 2021 10:21 PM PDT

    Am I on the right track with learning Android Dev?

    Posted: 19 Jun 2021 11:05 AM PDT

    I started learning android dev in my spare time about 2 years ago, whenever I get a couple hours I try to learn something new or do some coding.

    I've built a few simple apps, my question is:

    When I sit down to start a new project, I cannot do it off the top of my head from scratech, I have to look at one of my previous projects to get the structure right, i.e:

    I look at how I set up dagger and copy that, I look at how I set up retrofit and copy that, I look at how I made the network calls, coroutines/rx and set that up (obviously every API is different so I have to do that manually and create the relevant Entities models etc...) I look at how i set up room and copy that over (again the Entities and models and DAO are unique so Id need to do that manually but would keep an eye on old app to make sure it correct), I look at how I set up MVVM, live data observables and copy that over (adjust as needed for new app) state management class i copy over, I copy over my clean architecture structure (uncle bob style), then anything I havent done before say paging library I would research that and implement it (but for any new apps I make I'd copy that over too), the stuff I do myself is mainly the manipulation of the data and where I have to adjust any of the stuff i copied from the old app for the new app etc... but any structural stuff that is almost identical in most apps i just copy over and adjust for my new app.

    I understand Clean Architecture (uncle Bob) and why it should be used, I understand MVVM and live data and why to use it, I understand Coroutines and why use them, I know what retrofit and Gson etc... does and why I need it etc... but if you sat me down with a blank New App and told me you have 2 days to make an app you can't look at any of your old apps, and no googling how to do stuff, Id be stumped, I'd know what I needed to do, i could write the steps out on paper, but I wouldnt be able implement them off the top of my head.

    I feel the code i copy over is almost identical for every project (boilerplate) and I cant imagine knowing it all off it by heart...

    Is this normal, I dont come from a dev background so Im not sure, this could be completely normal maybe everyone just copies stuff from their old apps, I mean it makes sense to me and saves me time right, I dont want to be going through google and documentation every time I have to set up dagger or retrofit etc.., i cant imagine sitting there coding the same thing from scratch for every app and then ending up trying to figure out the bugs because i missed something?

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

    No comments:

    Post a Comment