• Breaking News

    Tuesday, August 10, 2021

    Android Dev - Weekly Questions Thread - August 10, 2021

    Android Dev - Weekly Questions Thread - August 10, 2021


    Weekly Questions Thread - August 10, 2021

    Posted: 10 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]

    After updating to AGP 7.0.0, my app crashes with KotlinReflectionInternalError

    Posted: 10 Aug 2021 04:26 AM PDT

    For some reason, Jackson and R8 stopped playing nicely after updating from AGP 4.2.1 to 7.0.0. What could cause this? Is it a bug somewhere or did I overlook something?

    More info and stack trace in SO: https://stackoverflow.com/questions/68725781/kotlinreflectioninternalerror-after-updating-android-gradle-plugin-to-7-0-0

    submitted by /u/-manabreak
    [link] [comments]

    Removing and simplifying tests is part of development too - The evolution of apps Quality Assurance at Azimo (4 out of 5 articles)

    Posted: 09 Aug 2021 11:45 PM PDT

    What is difference between data binding’s android:text=“@{sometext}” and view binding’s binding.textView.text = “sometext”?

    Posted: 10 Aug 2021 03:07 AM PDT

    Hello everyone I've read many times that view binding is faster than data binding. In daily projects, I use both of them. But I was wondering what's the performance wise or any other difference between these two. Setting data using data binding is calling the view's setter methods and with view binding we also do exactly that ourself. Then why it is called that view binding is faster than data binding?

    Thanks

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

    Make an android game! (You will ask me your questions)

    Posted: 10 Aug 2021 08:49 AM PDT

    Hello, I've finally finished the game I've been working on for a long time. You can ask your questions!

    Trailer: https://www.youtube.com/watch?v=yE4xZ71KZWE

    • Game engine: Unreal Engine 4
    • Software language: Blueprint

    For the model stage:

    1. Maya 3D (Most phases of the model passed here)
    2. Zbrush (Detailed, organic models here)
    3. Substance Painter (Texture, material here)
    4. Mari 3D (I made the main character's face texture here)
    5. Marvelous Designer (Clothes)
    6. Photoshop (our classic veteran)

    Most of the models, all the weapon animations + voiceovers in the game belong to me. There are no ready-made kits, neither in software nor in design. I would appreciate if you download and support.

    You can ask your questions.

    To test the game: https://play.google.com/store/apps/details?id=com.woziva.killzombie

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

    Can I globally filter the display content to only show certain colors?

    Posted: 10 Aug 2021 08:01 AM PDT

    Can I globally filter the display content to only show certain colors?

    And by that I don't mean some color overlay app, but actually telling the operating system to not display certain colors. For example I would have the display in grayscale, and display this only with for example green pixels (see the image).

    Why grayscale first? I want to still see everything that was there before, if i'd just applied a green pixel filter to a full color image, the complimentary colors of green were not visible.

    Based on previous research there may be something doable in the Surface Flinger, but is this doable by "normal" means (writing an app or some adb wizardry) or must I go beyond rooting or even creating a custom ROM?

    https://preview.redd.it/ddk37z5fpjg71.png?width=1200&format=png&auto=webp&s=718f8ccb241eaecd906bf0894e66dd706066b961

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

    What to do when you get 1 star ratings with no explanation

    Posted: 10 Aug 2021 07:52 AM PDT

    I've all if a sudden been getting 1 star ratings with no explanations and since I don't know the emails of the users doing this and I don't know what to do. I had a solid 5 star rating for almost a year but in this month I've started to get these 1 star ratings and unlike reviews I can't see the users email or their reasoning. I'm at a loss for what to do here. Do I just take it?

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

    [Tolls] Does anyone know of a library or any way for my app to know when there is a toll?

    Posted: 10 Aug 2021 05:16 AM PDT

    Hi, I am making an application that uses google maps and I want to notify the user when there is a toll. Has anyone worked with something similar? Is there a way to achieve this?

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

    On every new update, a Google bot posts private messages to random people in our app

    Posted: 09 Aug 2021 01:44 PM PDT

    I've got a quite weird question regarding the play store. So I have a customer with an app that has a messaging functionality. This app only works, if you have a valid login. (You cannot register within the app itself. You have to request an account)

    So we made a special login for the play store and added it to "app content" so the reviewers can test the app.

    The problem is now, that everytime we publish an update to the production track, some Google bot posts messages to random users with our email address as message.

    Has anyone of you ever experienced something like this? How can we avoid this? If we remove the login data from the play console, can the app be suspended?

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

    Emails from Google "Complete your enrollment in the 15% service fee" - I already did

    Posted: 09 Aug 2021 10:22 PM PDT

    I registered for 15% service fee the same week I received emails sometimes back in June.

    But since they they do not stop emailing me every month, already received 2 emails with action required.

    This is the last email from today:

    [Action required] Complete your enrollment in the 15% service fee Hi Google Play developer, You haven't completed your enrollment in the 15% service fee. The new service fee tier will apply to the first $1M (USD) you earn each year, counted from the day you enroll. Please note that because the new tier went into effect halfway through the year (July 1, 2021), the prorated limit is $500,000 (USD) for 2021. If you've finished setting up your account group, you can enroll in the 15% service fee by visiting the Associated developer accounts page in Play Console and clicking "Review and enroll" at the top of the page. For more details, please see our Help Center article. 

    Am I missing something important, should I double check all my income reports or is this one of those examples when Google sends emails by mistake, as in the past with SMS permission warnings (to developers who never used this permission) etc?

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

    is Singleton pattern voilating the Single Responsibility Principle? Why?

    Posted: 10 Aug 2021 12:50 AM PDT

    https://refactoring.guru/design-patterns/singleton This tutorial points this issue in the problem section👆

    submitted by /u/Local-Bank-7718
    [link] [comments]

    What Happened to my Subclass Android Application?

    Posted: 09 Aug 2021 01:17 PM PDT

    Android Studio Bumblebee Canary 7 available

    Posted: 09 Aug 2021 09:58 AM PDT

    How Inject hilt dependency into compose function

    Posted: 09 Aug 2021 09:08 PM PDT

    I have comopse function for login and now i want to change change in my datastore when user login into app, isLogin = false to true
    So how i provide datastore dependecny to compose

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

    Billing library warning email from Google

    Posted: 09 Aug 2021 10:44 AM PDT

    My app has been using the billing library 3 pretty much since it came out. Last week I got an email from Google telling that I need to update to using billing library 3 or higher by Nov 1. It didn't mention my app specifically but the email seemed targeted at my company. It said:

    You must update one or more of your apps, which uses AIDL or an older version of Billing Library.

    Anyway, could this be because I have an old UNPUBLISHED app that uses AIDL?

    Or is it because I have an old APK on my main published app for Android 4.0 users that uses AIDL? Android 4.1 and higher users use billing library 3 and the Android 4.0 APK has not been updated in years.

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

    Proper vertical scrolling of ViewPager2 Fragments nested within a scroll view

    Posted: 09 Aug 2021 03:19 PM PDT

    I have the following layout :

    1. Linear Layout
    2. Tab Layout
    3. Scroll View

    --Constraint Layout

    ----ImageVirw & TexyViews stacked vertically

    ----ViewPager2 below those images and texts

    And within my view pager I add two fragments that also scroll vertically. I used a NestedScrollView as the parent of those 2 fragments.

    Right now the scrolling of the imageviews& textviews are separate from the scrolling of the elements within my viewpager2 fragments. I would like for them to scroll together.

    I've tried to change xml values and set things programmatically as per recommended by SO and Google but couldn't solve it.

    I believe I've hit a dead wall, please help.

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

    Best way to get remote Android development work?

    Posted: 09 Aug 2021 12:28 PM PDT

    What's the best way to get remote Android development work?

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

    Activity Recognition on AOSP

    Posted: 09 Aug 2021 05:48 PM PDT

    1. The state-of-the-art activity recognition for Android developers is Google's Activity Recognition Transition API, available on Google Mobile Services (GMS). But is there any activity recognition solution available on AOSP that does not require GMS?
    2. Also, I flashed a Pixel 1 with AOSP. I noticed in logcat that the device was doing activity recognition on its own, despite it being flashed with AOSP, printing messages like this. Does anyone know how this is possible?

    2021-08-06 11:57:42.780 679-873/? I/nanohub: osLog: [AR_CHRE] in-vehicle: 100 
    submitted by /u/notmutex
    [link] [comments]

    How to create checkbox multi selection in recyclerview item

    Posted: 09 Aug 2021 09:46 AM PDT

    Hi,

    I am trying to create a recycler view list like telegram messages. If you have telegram open a chat and long press on a message and you could see a checkbox on the left of all message items and could multi select items to do operations.

    I am trying to develop a similar item. But the issue is that after I added animation, there has been some issues because I am using notifydatasetchanged().

    Can someone suggest how I can fix this issue?

    Refer this question for more info.

    https://stackoverflow.com/questions/68709982/recyclerview-animation-issue-android-kotlin

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

    Can we still follow this playlist with jetpack compose 1.0.0?

    Posted: 09 Aug 2021 09:39 AM PDT

    No comments:

    Post a Comment