• Breaking News

    Tuesday, August 17, 2021

    Android Dev - Weekly Questions Thread - August 17, 2021

    Android Dev - Weekly Questions Thread - August 17, 2021


    Weekly Questions Thread - August 17, 2021

    Posted: 17 Aug 2021 06:00 AM PDT

    This thread is for simple questions that don't warrant their own thread (although we suggest checking the sidebar, the wiki, our Discord, or Stack Overflow before posting). Examples of questions:

    • How do I pass data between my Activities?
    • Does anyone have a link to the source for the AOSP messaging app?
    • Is it possible to programmatically change the color of the status bar without targeting API 21?

    Large code snippets don't read well on reddit and take up a lot of space, so please don't paste them in your comments. Consider linking Gists instead.

    Have a question about the subreddit or otherwise for /r/androiddev mods? We welcome your mod mail!

    Also, please don't link to Play Store pages or ask for feedback on this thread. Save those for the App Feedback threads we host on Saturdays.

    Looking for all the Questions threads? Want an easy way to locate this week's thread? Click this link!

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

    Coroutines (Part III) – Structured Concurrency and Cancellation

    Posted: 17 Aug 2021 04:19 AM PDT

    Question - how to let them know whether my app is a COVID-19 contact tracing or status app?

    Posted: 17 Aug 2021 07:59 AM PDT

    Observing Live connectivity status in Jetpack Compose way!

    Posted: 17 Aug 2021 06:26 AM PDT

    Android in-app purchases: configuration and adding to the project

    Posted: 17 Aug 2021 08:09 AM PDT

    Honest question: Why does it seem like Android development is way more popular in areas such as India or Eastern Europe than, say, in the US?

    Posted: 16 Aug 2021 11:43 AM PDT

    Just to be clear I'm not throwing any shade or judgement, and there's no ulterior motive with this question. Honestly just wondering why it seems there's so many more Android developers in certain countries then other leaders in tech like the US or UK.

    For example almost all the Medium articles I read are from Indian developers, I see a lot of people from Eastern Europe on forums/youtube videos, and just in general I see a lot of people speaking very broken English in youtube comments and on here and stuff. Even the Associate Developers degree that Google offers, they specifically have an option to pay for the test fee pay in Rupees or Dollars.

    Is there a reason Android isn't as popular in like the US? I'm US based myself (in school for my CS degree) and I see Android as a really enticing option to develop with; huge exposure with the Play store/sheer usage of Android devices, massive support from Google with up to date design guidelines and Codelabs, a constantly updated framework that is always on the cutting edge, etc...

    Yet I've gotten disparaging looks from acquaintances about learning Android, and nobody I know is or is even interested in learning it (opting instead for web apps, game development, etc.). Is there a reason for this? I find it sort of odd.

    submitted by /u/4th_Of_July
    [link] [comments]

    Internal test deployment platforms

    Posted: 17 Aug 2021 09:05 AM PDT

    In my company, we are working on plenty of apps at the same time and I wanted to unify the way that builds are delivered to our QA team and clients. I'm looking for a solution that will let us send ready and signed builds from our CI, and so far I've tried:

    • Microsoft AppCenter - It's great if it works. But most of the time it seems to have issues, and it's official application often fails to download and install builds on our test devices
    • Google Play internal deployment - It doesn't allow to install more than one build at the same time (if you sign up for internal test, you can't install production version and so on). Besides that, not all of our applications are released to Google Play, some of them are hosted on Huawei store or internal app providers
    • Firebase App Distribution - Basically the same issues that Google Play Has
    • Bitrise Ship - We use Bitrise as our CI, so we wanted to give Ship a go, but for now it only allows to download builds from URL, which is kind of a hassle if we want to send updates to our clients

    Is there any solution that matches our criteria? Can you suggest a platform we can use?

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

    Newbie dev here! I'm learning flutter and I can't figure out how to run this app on the emulator. Like the emulator launches but the app doesn't appear on it. I figure it has something to do with the lack of a phone icon next it. The sdk api level is 31 and the api level on the emulator is 30

    Posted: 17 Aug 2021 09:01 AM PDT

    How do you build a network

    Posted: 17 Aug 2021 07:18 AM PDT

    I am trying to network with other android developers. The problem is i live in the highlands so there is not really anyone here to talk to about it. Is there a place online that most people go to and is there any group specific to learners out there there ?

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

    Can I post an app on Google play that is very similar with another one?

    Posted: 16 Aug 2021 09:13 PM PDT

    I added some new functionalities to the original use cases, but because the first one isn't open source I had to write my own app.

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

    If one completely migrated to pure Jetpack Compose, what are the traditional libraries that becomes absolute ?

    Posted: 16 Aug 2021 10:23 AM PDT

    If one use pure Jetpack Compose (that is no XML based views and layouts),

    Then he will use

    LazyRows instead of RecyclerView

    Screens based navigation instead of Fragments

    Rows and Columns instead of Linear layouts

    So , what about the rest? Such as view pagers etc.

    (I am new to compose. Just let's discuss)

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

    How to keep code quality high?

    Posted: 16 Aug 2021 01:58 PM PDT

    I am wondering how does a company/team keep their android project code quality high?

    Issues 1. People come and go. Top tech company has average less than 3 year tenure. 2. Typically key people (leads architect) knows the code, architecture, best practices, conventions reasonably well especially in team less than 10 people. Once they are gone, how are you going to maintain the quality it once was. 3. You can rewrite everything every x years, but the same issues exist and your new code base quality would go down over time.

    My thoughts 1. People: hire multiple top quality developers (multiple leads potentially) so you have backups. 2. Code decoupling/good architecture. You don't have to rewrite everything but replace badly written components. 3. Hire/use high quality developer that are responsible for app rewrites. 4. Pay top dollars so people don't leave. Give people more freedom to use best technologies out there.

    Please contribute your opinions

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

    Why app module needs to know retrofit dependency? (Dagger/Hilt)

    Posted: 16 Aug 2021 04:06 PM PDT

    From what I can tell, when Hilt generate dependency graph, it needs to know retrofit because retrofit is singleton scope and it's tightly related to application component.

    I have data module that contains all retrofit dependencies, but I can't compile unless I put retrofit into app module or make it an api dependency.

    Is this a design flaw of dagger hilt? Any workaround?

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

    Advantages of publishing your app in playstore instead of publishing it in your own website ?

    Posted: 16 Aug 2021 04:55 PM PDT

    i m planning to publish my app in a website that i ll make because of the high playstore fees .

    but i think users will find playstore easier to use and more trusty , also it will be easier to reach .

    is there any advantages that i ll miss if publish it in my own website ?

    submitted by /u/random-_dude
    [link] [comments]

    In android, is it a bad idea to inject an adapter with Hilt

    Posted: 16 Aug 2021 03:43 PM PDT

    I recently learned about DI in android using Hilt. And I wonder if an adapter really needs to be injected using Hilt. There are scenarios that an adapter can be used to multiple recyclerviews of an app. So at first it makes sense to inject it by providing/binding it in a module so it can be reusable. But on second thought, an adapter most likely have dependencies of a list and a click listener interface which means that the fragments/activities that will call the adapter have different values or implementations for these dependencies. And you may potentially encounter the problem of Dagger/DependencyCycle error because you will need to inject the adapter to a fragment/activity and then inject an implementation of the click listener interface which is the fragment/activity.

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

    �� This Thursday �� Android gurus face off in DevProdEng Showdown! S1E6: Android Builds and Tests at Scale

    Posted: 16 Aug 2021 10:41 AM PDT

    Newbie Developer Looking For A Mentor

    Posted: 16 Aug 2021 10:11 AM PDT

    Hello!

    I am an 18 year old high school student from Eastern Europe. I am not looking for someone to tell me everything I must code, rather someone that would guide me to the right direction / resources.

    I am willing to put in the hours and work hard but I definitely feel like this would speed up my learning.

    If anyone is interested just shoot me a DM on reddit!

    Thanks!

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

    Should I learn Java or Kotlin?

    Posted: 16 Aug 2021 06:18 PM PDT

    So I started an Android development course for beginners from about two weeks and I'm seeing a lot of people saying that Kotlin is better than Java, should I switch over to Kotlin or continue with Java? I haven't finished the course yet btw.

    Edit: I've also seen people in a reddit thread recommending to learn some Java first and then go to Kotlin, but how much Java do I have to learn first before making the switch?

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

    HTML5 Game in an APP

    Posted: 16 Aug 2021 10:06 AM PDT

    Can a HTML5 game in Java be converted to an Android app easily?

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

    How complicated is it to program the Reddit app?

    Posted: 16 Aug 2021 09:54 AM PDT

    If one wanted to create the Reddit app in android studio. Would this be difficult or doable for one person? Or how much work is it? How many programmers need for how long?

    Thank you

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

    No comments:

    Post a Comment