• Breaking News

    Tuesday, May 17, 2022

    Android Dev - Weekly discussion, code review, and feedback thread - May 16, 2022

    Android Dev - Weekly discussion, code review, and feedback thread - May 16, 2022


    Weekly discussion, code review, and feedback thread - May 16, 2022

    Posted: 16 May 2022 05:00 AM PDT

    This weekly thread is for the following purposes but is not limited to.

    1. Simple questions that don't warrant their own thread.
    2. Code reviews.
    3. Share and seek feedback on personal projects (closed source), articles, videos, etc. Rule 3 (promoting your apps without source code) and rule no 6 (self-promotion) are not applied to this thread.

    Please check sidebar before posting for the wiki, our Discord, and 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!

    Looking for all the Questions threads? Want an easy way to locate this week's thread? Click here for old questions thread and here for discussion thread.

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

    Weekly Who's Hiring Thread - May 16, 2022

    Posted: 16 May 2022 06:00 AM PDT

    Looking for Android developers? Heard about a cool job posting? Let people know!

    Here is a suggested posting template:

    Company: <Best Company Ever>
    Job: [<Title>](https://example.com/job)
    Location: <City, State, Country>
    Allows remote: <Yes/No>
    Visa: <Yes/No>

    Feel free to include any other information about the job.

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

    logical conflict in playstore. How app uninstalls are higher than installs. anyone please explain

    Posted: 17 May 2022 01:04 AM PDT

    Hackerrank/Leetcode interviews for Android Developers

    Posted: 16 May 2022 07:34 PM PDT

    Hi guys,

    I'm an Android developer suffering with ADHD. I recently applied for an Android role for a NL company. Had my first "culture fit" introductory interview last week and at the end the interviewer told me I will have to do solve some HackerRank challenge during the technical interview process (tomorrow).

    TRUTH IS, I don't want to go through any Hackerrank/Leetcode things. My poor working memory can't let me deeply focus on these algorithm challenges. HackerRank / Leetcode problems are definitely not good for my mental health.

    I've read from some seniors android developers that they are companies out there that don't give a f/ck about algorithm things. when it come for mobile developers role. I'm 100% open to do anything related on Android development (Kotlin/ Java) be it building a sample project from scratch , or finding and solving bugs in a projects.

    Should I ask them to skip the Hackerrank part ? or what would you suggest me to do?

    Also if you have any open Android position in your company and you don't care about Leetcode/HackerRank, or if you know someone who is hiring android developers like me, let me know. I'm 100% open to new opportunities.

    Thanks.

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

    Impacts of not filling the App Content part of unpublished application on Play Store?

    Posted: 17 May 2022 01:06 AM PDT

    Impacts of not filling the App Content part of unpublished application on Play Store?

    So since neither the support nor the policy team accept to answer that simple question asking here hoping some Googler can give some insight here.

    The simple question:

    What are the impacts of not filling the App Content part of unpublished application on Play Store on the account?

    I tried to fill one on an old app (to avoid issues in July as the console remind me I should even for those) that a rejection for wrong play store description and content on things that I can't fix and I'm now stuck with the policy team explaining me that I need to keep all unpublished app up to date to each and every new policies.

    https://preview.redd.it/m278bc4ctzz81.png?width=3153&format=png&auto=webp&s=e3896dbd101dd22be0f34487fd828298bf944dfa

    This is a very old test app for Android wear that can't respect the new policies since it's purpose does not fit the new Wear rules and minimal functions. So I can't fix the APK, I can't fix the description as the Wear team will reject too. And their last mail is pretty aggressive on telling me that I should fix this with extra due diligence ...

    So basically work for free until the end of life for no purpose, welcome slavery.

    I unfortunately have apps still in prod so can't risk the account and drop everything even if I really want to seeing how we are treated since all those years and things only going worse.

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

    Google is hard at work to fix Android’s background app issue

    Posted: 17 May 2022 10:39 AM PDT

    increasing heap size in android

    Posted: 17 May 2022 09:16 AM PDT

    so for my project , I need a huge heap size like 10GB , but the max I got from my VM is about 350MB after which the application crashes due to out of memory. I tried every possible solution like editing the configuration and like that but it didn't help , is there any solution ?

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

    increasing heap size

    Posted: 17 May 2022 09:12 AM PDT

    so , for my project . I need a huge heap size in android studio virtual machine , I need like 10GB of ram because the map size increases to values like 2 million and something like that , I tried every possible solution to increase heap size of virtual machine but I couldn't, always that max I got is about 350MB . is there any solution to my problem ?

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

    Raising code quality for Faire’s Kotlin codebase

    Posted: 16 May 2022 09:35 PM PDT

    Would an AR + Face detection App work?

    Posted: 17 May 2022 08:07 AM PDT

    Hi, recently I had an idea for an app that will display a character using AR and it will be like a friend which will react according to whether the user smiles or maintains eye contact(using the ML kit face detection). However, since I'm new to app development, I was wondering if it is possible and whether the hardware of a phone can handle it since I heard it can be quite consuming? Appreciate any help!

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

    Edit values of build.config after build ?

    Posted: 17 May 2022 06:23 AM PDT

    Hello I wanted to ask if there is a way or if it is a possibility to change the values of build.config generated fields after the build is done ?

    Thank you so much

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

    Spot your UI jank using CPU profiler in Android Studio

    Posted: 16 May 2022 10:14 AM PDT

    UI Problems on different Devices

    Posted: 17 May 2022 03:32 AM PDT

    Hey,

    I'm new to programming and I try to build an app like Wordle.

    Now the problem, in Android Studio my UI looks fine and aligned perfectly, but on my Phone it's all over the place. Maybe because of the Resolution? What can I do to make it scalable, so it fits my Phone screen. We tried it on a One Plus 6T and a S20Fe, it worked flawless on the 6t But looks bad on the S20FE. For reference

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

    Developing a mirroring screen app

    Posted: 17 May 2022 01:32 AM PDT

    Hi, I'm new to developing app on Android.

    I have this project to make an Android app that can mirror the screen and show it on a site that I will build. I have no idea how to do that, I searched on YouTube for some tutorial but I did not found anything... A great example for what I want to do is the casting site of Oculus (https://www.oculus.com/casting/).

    Someone can address me to some tutorial stuff or some site to understand how to do this project?

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

    Sketch of Android's Keynote at Google I/O. Overview of Key announcements: https://blog.codemagic.io/google-io-2022/

    Posted: 16 May 2022 12:01 AM PDT

    Which device for Android TV development?

    Posted: 17 May 2022 12:09 AM PDT

    I'm looking to get a test device for Android TV dev, but not sure what to get. I currently don't have an Android TV, and I'm not looking to get a whole TV just for development.

    Ideally, I would want something like a chromecast which can give me access to an Android TV without buying a new TV.

    Are there any suggestions based on developer experience?

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

    Looking for an app dev buddy

    Posted: 16 May 2022 07:44 AM PDT

    Does anybody here wants to start building apps as a team using Kotlin with me?

    submitted by /u/Fair-Anything-8730
    [link] [comments]

    How to calcluate the number of words read

    Posted: 17 May 2022 12:29 AM PDT

    Google play terminate my play console account says I was associated with another account

    Posted: 16 May 2022 03:51 AM PDT

    Hi, devs

    A few days ago, I received an email that my play console account was terminated because I was associated with another account I have been using this account since 2019 and it got only one app with 500k+ downloads. and I also work as a freelance from 2019 with small business owners to launch their apps or product into the play store.

    In 2020 everything changed because of the pandemic everything goes to the online around the time I worked with various small business owners and small developers to launch their products into the google play store so I have a lot of connections to the play console account I don't know which one of them did wrong. This destroyed my entire freelance carrier because most of the clients want to see our previous work so that they can assure that they hire a good developer to work on their apps or products.

    I appealed and got an automation reply after 3 days they said that " After review of your appeal, we're unable to reinstate your developer account.

    Your Google Play Developer account has been terminated due to multiple violations of the Developer Program Policies by an associated Google Play developer account. We've reviewed and confirmed this association"

    I don't know how they confirmed this, I don't know what to do next. It's the end of my freelance app developer career I can't even open a new account it's hard all of my learning, and development were destroyed within a second

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

    can I use getExtra and putExtra for this?

    Posted: 16 May 2022 02:42 PM PDT

    I'm still learning android studio and I'm currently working on my 2nd app. It's an app where the user can keep up with maintenance on their motorcycle and I'm feeling a little stuck on an issue. If the user has a list of bikes and wants to click on a bike to do something related to that specific bike's maintenance records, how would I implement the page that shows the records for that specific bike? What if the user creates another bike entry? Another maintenance records page would need to be automatically generated for that specific bike as well. Can someone point me in the right direction? Would getExtra and putExtra be used here?

    Sorry if the question isn't clear.

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

    Is there a way to create the Facebook App ID and App Secret without using your personal Facebook account?

    Posted: 16 May 2022 02:39 PM PDT

    When I go to Facebook Developers, I don't see an option for businesses to create the App ID and App Secret needed to enable Facebook authentication for their app. I don't want to sign in with my personal Facebook account as I want to keep my personal account separated from my app. I want to use the same email address that I used to create my Firebase project for my app, which isn't my personal Gmail account. Does anyone know how to do this?

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

    Does Amazon have a "cast" SDK?

    Posted: 15 May 2022 10:11 PM PDT

    Amazon audible app is capable of specifying an Alexa speaker, and I'm told Amazon music can also cast to Alexa echo devices. Does Amazon have a public API for this functionality?

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

    Now in Android - a new, open-source, real-world sample app

    Posted: 16 May 2022 03:58 AM PDT

    The app has two goals:

    Firstly, it showcases best practices, opinionated designs, and solutions to complex real-world problems which other sample apps don't handle. It does so with an open-source implementation of a real-world app.

    Secondly, it helps you (the developer) keep up to date with the areas of Android development that interest you most. It is a working app planned for publication on the Play Store.

    Check out the alpha version of the Now in Android app on GitHub! 🎉https://github.com/android/nowinandroid

    Ref: https://android-developers.googleblog.com/2022/05/now-in-android-sample-app-alpha.html

    #android #developer #androiddevelopment #androiddev #github

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

    How do I share RecycledViewPool between fragments?

    Posted: 16 May 2022 06:44 AM PDT

    My app includes a file manager, with each fragment stacking on top of the other as the user navigates the folders.

    As an exercise and attempt to run smoothly even on very old low-end devices (LG L70), I want to reduce the lag caused by inflating views in each fragment's RecyclerView by sharing a RecycledViewPool between them. The problem is that using a ViewModel would cause a memory leak since the Views inside the pool would retain a reference to the context between configuration changes.

    So how can I share a RecycledViewPool between fragments while limiting the pool's lifecycle to the activity's lifecycle?

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

    MiStoryView is a simple configurable library to integrate stories features into your social media android app.

    Posted: 16 May 2022 05:54 AM PDT

    How long should my android game be?

    Posted: 16 May 2022 08:33 AM PDT

    Hi,
    I'm currently working on my android game and I'm curious how long my game should actually be? If most of the users will spend half an hour on my game, there isn't any reason to make it longer, but I also want to make sure that my game isn't too short. Giving your own app's statistics will be very helpful, thanks in advance!

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

    Studying an example in Android docs

    Posted: 16 May 2022 08:03 AM PDT

    I was reading this example https://developer.android.com/jetpack/compose/performance#use-remember

    It says:

    The problem here is, every time ContactsList is recomposed, the entire contact list is sorted all over again, even though the list hasn't changed. If the user scrolls the list, the Composable gets recomposed whenever a new row appears.

    However, it appears that only LazyColumn gets recomposed if you scroll the list up and down (the ContactsList does not get recomposed). Is that a typo? Also I tried logging to confirm sort is happening again when new items become visible after scroll but it does not seem to be the case:

    @Composable

    fun ContactList(
    contacts: List<Contact>,
    modifier: Modifier = Modifier
    ) {
    LazyColumn(modifier) {
    // DON'T DO THIS
    items(contacts.sortedBy { it.name }.also { println("Contacts sorting") }) { contact ->
    Text(
    text = contact.name,
    fontSize = 50.sp,
    modifier = Modifier
    .height(100.dp)
    )
    println("LazyColumn recomposing")
    }
    }
    println("ContactList recomposing")
    }

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

    No comments:

    Post a Comment