• Breaking News

    Wednesday, November 24, 2021

    Android Dev - Is it more profitable selling/publishing apps to the playstore or selling to clients in general? How do you guys make most of your money with android dev? I'm looking to find my way here.

    Android Dev - Is it more profitable selling/publishing apps to the playstore or selling to clients in general? How do you guys make most of your money with android dev? I'm looking to find my way here.


    Is it more profitable selling/publishing apps to the playstore or selling to clients in general? How do you guys make most of your money with android dev? I'm looking to find my way here.

    Posted: 24 Nov 2021 08:35 AM PST

    iOS developer comes back to Android

    Posted: 24 Nov 2021 03:22 AM PST

    Hi guys,

    I am an iOS developer for over 2 years and I need to learn Android development but I have a few questions regarding this adventure

    1. The App's UI will be dynamic like buttons added or removed based on server side response. Should I do the entire UI programmatic or just use XML ? On iOS they prefer programmatic even when the UI is static

    2. What network library should I use ? The requests will be to a single endpoint every time and the content will be XML. I will do a wrapper anyway. DI, Repo are too complex for what I need.

    3. Recommended tutorials or best practices for Android development besides MVVM. I saw LiveData has something but it's already depracted for some reason.

    4. Jetpack compose ? I find it a bit limiting at the first look.

    5. Any other suggestions?

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

    Senior devs, what's your current approach to reactive programming in Android?

    Posted: 24 Nov 2021 05:39 AM PST

    First of all..

    So I asked this question in the weekly questions thread first, but then I figured this could actually provoke a solid and productive discussion, so I've decided to move it into a post.

    My background

    I'm honestly a bit confused. I've been programming Android since 2014 and I'm considered a senior by some standards, but I've dipped my toes in reactive programming a bit too late simply because the company I worked for was a bit old school and didn't use the newest tech yet.

    So I started the reactive approach around 2019/2020 and I've started using Rx on all levels except ViewModel->UI, where I use LiveData. It worked well at the time as I got exactly what I wanted. Rx provided a simple and reliable stream of data with great operators for manipulation etc. Then LiveData jumps in to provide a Lifecycle aware way to propagate that data to the UI. Couroutines, as I understood, were a bit too immature at that time, so not everyone recommended them. StateFlow didn't even exist back then if I recall correctly. Or it was just starting to get introduced.

    Source of my confusion

    Then Google started talking about deprecating LiveData and introducing StateFlow and things honestly just got a bit confusing for me. Their tutorials and code samples still use LiveData, yet they're advocating for people to use Coroutines + StateFlow instead?

    Then things got even more confusing when I tried to implement DataStore in the project and figured you need to use Coroutines + Flow for that anyway, so now I had to choose between the old caching solution or the fact that my project will now run on Rx + LiveData + Coroutines + Flow... that's just weird.

    What do you think is the default, recommended "stack" that would work for most standard Android projects these days? Rx + LiveData? Coroutines + StateFlow? Something entirely else, when Google inevitably decides to deprecate Coroutines and Flow in about 3-6 months? Lol.

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

    Is the Big Nerd Ranch Guide a good starting place?

    Posted: 24 Nov 2021 05:57 AM PST

    Hi, I am a junior studying computer sciece and I have just started to learn Android. Is the book Big Nerd Ranch Guide a good starting place?

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

    Why Google Play allows the Reddit app? Reddit has nudity content

    Posted: 23 Nov 2021 09:55 PM PST

    You can read many stories about social apps being removed from Google Play because of nudity content uploaded by their users (see examples below). So my question is: why Reddit app is not removed from Google Play? Reddit is full of nudity content.

    Why some developers are targeted by Google Play and others not if they seem to be doing exactly the same?

    Examples:

    Developers' blog post about how their social networking app was removed because of the content uploaded by users:

    https://magazine.artstation.com/2018/12/happened-artstation-android-app/

    News article about an unofficial Reddit client that was removed because of the Reddit's nudity content:

    https://www.huffpost.com/entry/reddit-is-fun-app-android-google-play_n_1367531

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

    I don't see a lot of tutorials about Material You, so I decided to start making some myself. This one shows how to apply the new dynamic theming to your app!

    Posted: 24 Nov 2021 10:32 AM PST

    Jetpack compose state management

    Posted: 24 Nov 2021 01:46 AM PST

    Functional programming concept in jetpack compose is great. BUT i found that it's really hard to manage state.

    For example, in one page, I need to use 10 section of text field composable, but in order to manage all the 10 field values is really difficult and contains tons of boilerplate code.

    Viewmodel is part of the solution, but still, most of my views are nested with multi-layers. Compared to the traditional declarative framework, we just need to call view.xxx = xxx

    #jetpack compose #androiddev

    submitted by /u/NiceGuy-n2
    [link] [comments]

    How to make nice looking designs when you are bad? Where can you find inspirations for layouts, colors, etc?

    Posted: 24 Nov 2021 12:41 PM PST

    Difference behavior in view binding vs data binding in included layout

    Posted: 24 Nov 2021 07:19 AM PST

    I used to have data binding(w/o and variables in the layout) to access the views on type safe way(and it is really made the development way more easier due to type safety). Today I decided to also add viewBinding to the project but after adding the viewBinding my include layout type got changed. Without viewBinding, dataBinding.includedLayoutId was a view that was included in the layout Now after viewBinding, dataBinding.includedLayoutId is of type ViewBinding and I have to now call dataBinding.includedLayoutId. includedView

    Is this change in behavior documented somewhere?

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

    Is there really no way to know?

    Posted: 24 Nov 2021 10:47 AM PST

    Is there really no way to know if an outgoing call was answered or not? And please for the love of God don't tell me about " READ_PHONE_STATE ". IT DOES NOT TELL US ABOUT THE STATE OF OUTGOING CALL!!, So if you don't know then say don't know, I'm tired of people telling about to use read_phone_state, IT just kills me every single time. And if someone genuinely has an honest and real way, please tell me, I'm desperate to know, thanks.

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

    What kind of window do I need if I want the app to close immediately when I switch apps or press back?

    Posted: 24 Nov 2021 07:47 AM PST

    In the Tasker app, you're able to make a "scene" which is like creating your own app window GUI. With my scene, the app closed when I pressed back, but most importantly, when I switched to a different app.

    This behavior is desired, and I would like your help in understanding what I will need in order to make it happen.

    It was considered as an Activity via Tasker, not a dialog or an overlay, so I don't necessarily think it has to be the latter, but I'm open to them either way.

    Thank you

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

    How do I monitor a directory for changes via SAF?

    Posted: 23 Nov 2021 03:35 PM PST

    I'm currently developing a markdown editor which includes a small file explorer to manage it's storage. The basic idea is that the user picks a folder via SAF and that will be used as a root for the editor's documents storage.

    I'm however struggling to make my file explorer reactive to file changes: FileObsever might as well be deprecated without direct access to the paths, and ContentResolver complains it doesn't support content:// uris. How did you guys work around this?

    Update:

    I found a way to make the ContentResolver not throw an exception: Google documented this nowhere, but by skimming the source I found that the DocumentFile API (which uses a Cursor internally) needs to prepare a content uri pointing to a document tree: in particular, the ContentResolver requires that the uri has a document id in it.

    In short, do the following to get an Uri that ContentResolver won't throw on

    val uriForContentResolver = DocumentsContract.buildDocumentUriUsingTree(documentTreeUri, DocumentsContract.getTreeDocumentId(documentTreeUri)) 

    I still haven't checked whatever it actually reports changes in the directory or not though

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

    Is jetpack compose ready for an average app in Production now?

    Posted: 24 Nov 2021 02:26 AM PST

    Can signature level protection (like SYSTEM_ALERT_WINDOW ) permission be granted using DevicePolicyManager

    Posted: 24 Nov 2021 01:16 AM PST

    There are certain permissions in Android such as SYSTEM_ALERT_WINDOW,WRITE_SETTINGS which have android:protectionLevel="signature|preinstalled|appop|pre23" or something similar to this,I have tried granting these permissions using device policy manager

    devicePolicyManager.setPermissionGrantState(compName, "com.some.packagename",Manifest.permission.SYSTEM_ALERT_WINDOW, DevicePolicyManager.PERMISSION_GRANT_STATE_GRANTED) 

    this returns false and doesn't grant the permissions to the mentioned package.My question is since the app that is prompts the dpm to grant permission is a device administrator is there a way to grant these permissions, and if they aren't granted is this in any way related to signatures for the admin app and the app being granted the permission.

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

    A resource similar to "The Odin Project" but for learning Android Development?

    Posted: 23 Nov 2021 08:31 PM PST

    Hi all, I'm wondering if there is a website or course that is similar to The Odin Project. I enjoy the structure provided by T.O.P and also the fact that the whole thing is text-based. I personally have a hard time learning from videos.

    Background: I'm an aspiring self-taught Android dev with very basic knowledge in HTML, CSS, JS.

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

    Things to consider for a Grpc noob

    Posted: 23 Nov 2021 10:40 PM PST

    I am starting to learn grpc.

    For Front-end

    What library should I look into if I want to integrate grpc in my android app. Just like we have retrofit for integrating rest apis do we have something in kotlin?

    For Back-end

    I have seen a lot of tutorial with go lang as most people seems to be using go lang for creating grpc services. What backend tech are you using for creating grpc services if not go lang?

    Any tips or suggestions for a grpc beginner would be appreciated.Does any one know of any good video course of full stack grpc. I am having touch time understanding the grpc docs as I am a below average programmer. I see lot of courses for graphql but looks like there is hardly any love shown to Grpc by content creators.

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

    Android Gradle Build take 40mins.....

    Posted: 24 Nov 2021 12:00 AM PST

    Android Gradle Build take 40mins.....

    my mac pro is M1and RAM is 16G, Android Studio version is

    Android Studio Arctic Fox | 2020.3.1 Patch 2 Build #AI-203.7717.56.2031.7678000, built on August 27, 2021 Runtime version: 11.0.10+0-b96-7281165 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 11.4 GC: G1 Young Generation, G1 Old Generation Memory: 3072M Cores: 8 Registry: external.system.auto.import.disabled=true Non-Bundled Plugins: Dart, io.flutter, wu.seal.tool.jsontokotlin 

    someone can tell me why? Every time I sync gradle it takes almost 40mins, make me sick.....

    https://preview.redd.it/ps6eyuj52i181.png?width=987&format=png&auto=webp&s=1c0c81591fcafb7b5203e135f493083188e3ad34

    https://preview.redd.it/r7zr5nmv3i181.png?width=1502&format=png&auto=webp&s=82370f7baf5586d681066c02ff411d884d8f3d2f

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

    NDK Setup?

    Posted: 23 Nov 2021 03:52 PM PST

    I am looking for a developer who can implement a working & debuggable ndk android app as a git project. From there I want to integrate some prebuilt c++ libraries such that I can build apps and games for Android. Private message me if you can help!!

    submitted by /u/Zestyclose-Tailor-61
    [link] [comments]

    No comments:

    Post a Comment