• Breaking News

    [Android][timeline][#f39c12]

    Thursday, February 10, 2022

    Weekly Questions Thread - February 08, 2022 Android Dev

    Weekly Questions Thread - February 08, 2022 Android Dev


    Weekly Questions Thread - February 08, 2022

    Posted: 08 Feb 2022 06:00 AM PST

    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]

    Get Android 13 | Android 13 Developer Preview | Android Developers

    Posted: 10 Feb 2022 10:18 AM PST

    Top Free apps in Weather category flooded with games. Does it have anything to do with ASO?

    Posted: 10 Feb 2022 04:46 AM PST

    PSA: Android Studio Bumblebee Patch 1 auto-updater is now working

    Posted: 10 Feb 2022 01:11 AM PST

    Do people use coroutines for something else than network calls?

    Posted: 10 Feb 2022 07:55 AM PST

    I mean ... In the documentation it's an example of how to make a network call with coroutine in the I/O thread. But other than that, does somebody use coroutine for something like UI related? If yes how

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

    Google Developer Account Got Terminated Suddenly Citing Absurd Reasons

    Posted: 10 Feb 2022 03:54 AM PST

    So a dev account of one of my client got terminated all of a sudden on January 4th, 2022. I was one of the developers that was working for some of the projects for that account. The Publisher name is Doc Tools & Utilities. You can read more about it here:

    The Story of How Google Terminated My Developer Account On 'Vague' Reasons

    I never accessed the said dev account. Only the owner and a marketting firm had access to it by means of proper access channel. There were no violations on it or any other kind of standing issue. As per my experience, and I have an experience of around 7 years in android development, the account was in good standing and the user base was growing steadily.

    The reason cited was 'multiple violations by this or associated account as per prior emails sent'. The thing is they never got any 'prior' emails or any intimation.

    The appeal afterwards was also rejected which I assume was automated rejected by their bots.

    I know most of you must be thinking that they must have registered another dev account or someone's dev account that is associated with them must have been terminated and this is simply the domino effect, but, no I have asked them thoroughly and this isn't the case. The account is in no way associated with any other account and there also isn't any other account in their circle that has been terminated recently. It was their first and only dev account.

    Google Play Developer support is really messed up. I mean what's the point of setting up a support in the first place if you're not gonna answer to anyone. Also, if you're terminating someone (who btw doesn't have any violation or strike and is in good standing just a day before) isn't it plausible to at least let them know what exactly went wrong and where?

    Every other store's support works with you when you violate something in order to bring your product in to compliance but for Google I guess support means something else entirely.

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

    Google Developer Account terminated

    Posted: 10 Feb 2022 11:29 AM PST

    Hello!

    I have a couple of questions regarding my termination and hope to find answers here as google unfortunately, even after many attempts, does not answer me.

    Quick overview: I have developed an app where users can contribute posts to a community like instagram, TikTok etc can.

    I had an 18+ rating as I expected some profanity or slang to be used. However, my app was terminated because a user used the word "cum" in a text, which violates the sexual harassment and profanity rules.

    I thought that this is a quit hard decision as the app is 18+ and I ticked the "profanity" (often) and hard language checks in the age rating. Moreover this posts was unfortunately only created a couple minutes prior to the checking of google as we handed in our update a day prior.

    I, one of the moderators, and the others, didn't see the post as there were up to thousands of posts a day so this one slipped through. As we use a mechanism to show random posts, the google worker saw unfortunately this post. We had 8 months without any issue and then with the single image our app got permanently banned. This happened another time and now my account is banned for lifetime.

    I appealed multiple times with, obviously, no positive result and only got the always same answer...

    So I have implement all features which are required by google, e.g. that you can report posts, hide posts, ignore/block users etc. But this seems like Russian roulette, as If we hand in an update we always have to hope that nobody posted something which might violate the rules when the update is being controlled. I mean for what do we implement those features? If we are unlucky and somebody posts a minute ago something violating the rules everything is done for nothing ....

    I also develop for apple and I had the same issue once but instead of terminating my account they requested me to remove the post which we did immediately. Google is so super harsh, like no reaction time.

    So one of my questions is: How much time does google give us in an open community app to act upon newly shared posts? like only 1 minute?

    Why is it not allowed to use the word "cum" in an 18+ app while the n-word can be used on YouTube in a joke video (which I reported as a test to see if they remove it - they didn't :D).

    Why is it okay on instagram and Facebook (12+) apps to use such a wording? Why is it allowed on Telegramm? I have seen groups from friends where they post like only stuff which violates any rules and google definitely knows about this.

    TO sum it up. I feel super unfairly treated, especially to get a lifelong termination which shuts down my development entirely. Did you encounter anything similar? Did somebody really get in touch with a human and not a bot and managed to get back their account?

    Any tipps? I am super sad and frustrated...

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

    What are career progression options for Senior Android Devs.

    Posted: 10 Feb 2022 02:00 AM PST

    Recently I had to take up job in React Native development after been working in Android Development for 11 years. I only accepted this challenge due to financial reason, there was substantial hike.

    But I have never worked in JavaScript before in serious way and after working in it (its mostly JSX in react Native not JS) I don't like this tech. I prefer strongly typed languages so I kinda lean on backend.

    Wondering What other Senior Android Devs do for career progression ? or when you don't have any Android roles on offer.

    submitted by /u/Unlikely-Ad3551
    [link] [comments]

    Is it possible to create a custom HotSpot wrapper app that can allow/decline acccess to other users and limit HotSpot sharing by time or data?

    Posted: 10 Feb 2022 09:25 AM PST

    Basically the title. Is there API that would allow me to create app that gives me control over the HotSpot usage. For example I want to turn on my HotSpot through app, but then when someone wants to connect I get the option to allow or decline access. So the other user doesn't know my password but he just asks me for access, or he just gets a single time password and other users can't connect with my HotSpot with the same password.

    Any help or tips here would be appreciated guys, thank you!

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

    SplashScreen API and conditional navigation

    Posted: 10 Feb 2022 06:23 AM PST

    Hi, I have a question about managing an auth flow with the new splashScreen API. Before it, I made a fragment for the splash screen and there I navigated to the homeFragment or the loginFragment based on the UserState. Now I don't quite know how to do this since the splashScreen is in the mainActivity as advised in the Docs.

    What I have is one MainActivity and multiple fragments. I have a homefragment (think like news feed for user) , loginFragment and other fragments. My startDestination is the homefragment (previously it was the SplashFragment) . I did create a function to navigate from there to loginFrgament if the user is signed out but it always shows the homefragment before switching there.

    is there a better way to manage this?

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

    Jetpack Compose 1.1 is now stable!

    Posted: 09 Feb 2022 10:32 AM PST

    JankStats Goes Alpha

    Posted: 09 Feb 2022 06:10 PM PST

    Open sourcing an app. Pitfalls ? Positive sides?

    Posted: 10 Feb 2022 12:50 PM PST

    Hi all, I wanted to hear about experiences of others who open sourced their apps. Or, what you think about the case below.

    Over the last 3 years I have been working on a quite complex app. I haven't made my mind up yet but, I might open source it. This app is available on Google Play and is quite complicated. There aren't many competitors exist due to complexity of functionality required.

    It is not be "lets open source and leave it" kind of app. I am currently spending 4-5 hours a day on this app and I intend to do so for foreseeable future. I also intent to charge for certain functionality.

    While I am inclined to give back to the community (albeit with some sh*ty code) naturally, I have some reservations.

    For example:

    Copy cats:
    One of the main concerns is copy cats that may just rebuild and release the app under different name. Copying is not the issue but Google is being Google, who is to know Google won't say my app is the actual copy cat and remove it?

    I know I can put a license restriction but I don't have any means to chase some single dev from some other country.

    Associated developer bans:
    Can I ever be sure that Google will not terminate my account because a banned dev used my source and Google with its godly perfect AI analysed my account and found me related to that banned dev?

    App secrets/credentials/keys:
    Since app has over 60 modules with tons of different services and functionality it contains credentials for some online services. I know it is not possible to secure credentials once you release them with your app. But publishing them straight away sounds scary.

    For example most articles say not to worry about "google-services.json" but ideally I'd like to keep it to my self. Removing google-services.json every time I need to push update to remote repo sounds too cumbersome.

    Closed source SDKs/Services :
    App makes use of closed source SDKs/Services. I suppose I would have to write some sort of no-op module and publish that instead. That on its own is probably too much hassle than it worth. Removing such services would mean I would have to maintain 2 copies of the same source code.

    submitted by /u/NLL-APPS
    [link] [comments]

    ML On The Job

    Posted: 10 Feb 2022 12:29 PM PST

    I am planning on pursuing app development as a career path. I am currently finishing up a master's degree in Computer Science and have taken a lot of ML/CV classes. I want to use that knowledge on the job. Do app devs do the ML work or is that something that a particular ML team will handle and the app dev focuses on the UI and backend+database connections?

    I am going to be new to the industry so I don't know anything about industry practices.

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

    CWTI - Compose ALL the things! �� Foldables, wearables, TVs and more — with Clara Bayarri

    Posted: 10 Feb 2022 11:53 AM PST

    Question with Dagger subcomponents

    Posted: 10 Feb 2022 08:07 AM PST

    I couldn't find this online/didn't know who to ask for, I hope this community can help me.

    It occurred while I was going through the Dagger 2 code lab from Google. ref: https://developer.android.com/codelabs/android-dagger

    In one of the exercises of this codelab, it helps you create a subcomponent and tie it with the appcomponent.

    The way you associate this subcomponent to the app component is by creating a module and specifying your subcomponent in the module annotation and later including that module in the appcomponent.

    @Subcomponent interface RegistrationComponent {..}

    @Module(subcomponents = [RegistrationComponent::class, LoginComponent::class]) class AppSubcomponents

    @Singleton @Component(modules = [StorageModule::class, AppSubcomponents::class]) interface AppComponent { ... fun registrationComponent(): RegistrationComponent.Factory }

    My Question is that I do not see the importance of code block 2 and specifying it in the AppComponent as a module. Removing that code also seems to work with accessing registration component factory from the app component and there seems to be no change in the code generated by dagger as well.

    I am wondering if it is required to mention AppSubcomponents for multi module projects only?


    TLDR https://dagger.dev/dev-guide/subcomponents

    To get subcomponents to work there are three parts : 1) declaring the subcomponent via \@Subcomponent annotation 2) add the subcomponent to the parent by creating a module that specifies the subcomponent and add this module to the parent component. 3) Surface the subcomponent factory in the parent component

    My question is skipping step (2), there doesn't seem to make any difference to the generated code or behaviour. How does this all work?

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

    Android Chat App In Six Simple Steps Using Azure Communication

    Posted: 10 Feb 2022 02:02 AM PST

    Do you have any plan to add chat functionality to your application?

    Microsoft released multiple APIs and SDKs under 𝐀𝐳𝐮𝐫𝐞 𝐂𝐨𝐦𝐦𝐮𝐧𝐢𝐜𝐚𝐭𝐢𝐨𝐧 𝐒𝐞𝐫𝐯𝐢𝐜𝐞𝐬 for a wide range of platforms and languages. It supports various communication formats like chat, voice/video calls, and SMS messaging.

    To understand its working in Android, check out the blog on 𝐀𝐧𝐝𝐫𝐨𝐢𝐝 𝐂𝐡𝐚𝐭 𝐀𝐩𝐩 𝐈𝐧 𝐒𝐢𝐱 𝐒𝐢𝐦𝐩𝐥𝐞 𝐒𝐭𝐞𝐩𝐬 𝐔𝐬𝐢𝐧𝐠 𝐀𝐳𝐮𝐫𝐞 𝐂𝐨𝐦𝐦𝐮𝐧𝐢𝐜𝐚𝐭𝐢𝐨𝐧.
    https://blog.kiprosh.com/android-chat-app-using-azure-communication/

    #chatapp #azure

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

    TomTom IndiGO

    Posted: 10 Feb 2022 11:39 AM PST

    Hi everyone,

    The release of TomTom's IndiGO platform is puzzling me.
    I looked at videos and press releases and can't understand the motivation behind this product.

    Every feature they are boasting about is already present in Google's AAOS.
    It looks like they took a cookie recipe, changed the butter for margarine and now calling it their own.

    Have I missed something ?
    Please enlighten me.

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

    Recommended books and Courses for Test Driven Development in Android.

    Posted: 10 Feb 2022 05:39 AM PST

    Hi, my company is putting some focus on TDD in their development and my manager wants me to provide him with a list of courses and books they should buy for training the Android team. Help from you guys will be strongly appreciated.

    PS: I have completed this course https://www.linkedin.com/learning/ios-app-development-test-driven-development-2 but this is for iOS.

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

    Should we also include potential ad contents in "Content Ratings"?

    Posted: 10 Feb 2022 04:39 AM PST

    So my app was removed because it violated Inappropriate Ads policy. Although I have already set the target audience to 18+ years of age and check the box "not designed for children". I don't think that was enough. Should we also answer the content rating depending on what ads we want to run on our app?

    For example, I don't want to limit my ad with only 13 years old and below only ad content. I also want to include all sorts of ads so, even though my app can be friendly to 13 years old but, I want it to run an ad that is only "appropriate" for 18+ years old audience, so I would intentionally set it to only 18+ years of age.

    Is that correct? So for example, even though my app itself does not have any sexual content should we answer "yes" in Content Ratings because it could potentially have a sexually stimulating image in the ad?

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

    Pixel 3 / Android 12L

    Posted: 10 Feb 2022 09:21 AM PST

    Hi everyone I want to know if I can install all Android 12L on pixel 3 if anyone can tell me about it that would be great. As I found out there is no official support for Pixel 3 sadly. Thanks for your time 🤟🏻

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

    Learn AOSP OS development (Custom Android OS)

    Posted: 09 Feb 2022 11:17 PM PST

    Hi, I am interested to learn/deep dive on AOSP development to make customised Android OS. I have quite experience to download, build and changes some part of the AOSP OS. Here I am more interested to deep dive all of the component at least once and would like learn professional AOSP development skills.

    It wonders if there are online courses for AOSP OS development, I have found few courses/tutorial but most of them related to the Android application development not for AOSP OS development.

    Thanks in advance!!
    Note: I know this is page more related for app development but posting here for more visibility. (Big sorry for the same.!!)

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

    Google Play Console Weird Conversion Analysis Search Terms

    Posted: 10 Feb 2022 07:21 AM PST

    Usually when I review the Conversion analysis information for my app, it's not very useful and the search terms is always just "Other." Today I noticed a new search term of "simple text widget" with thousands of Store listing visitors and a conversion rate of 16%. My app is not a simple text widget—what's going on?

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

    How can I access private Github repo on Android? (JSON File)

    Posted: 10 Feb 2022 06:42 AM PST

    I have created a repo for android application where i want to keep some data. I can't access it because it's hidden. I created an Access token but I don't know how to access it on Android. Inside this repo I have JSON file, images and lots of HTML file.. I need to access them

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

    Chipmunk (2021.2.1) Beta 2 and Dolphin (2021.3.1) Canary 2 available for download

    Posted: 10 Feb 2022 02:29 AM PST

    Both available here: https://developer.android.com/studio/preview

    Somehow... release notes are missing for both of them.

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

    Change status bar color when user scrolls content

    Posted: 10 Feb 2022 04:40 AM PST

    can anyone help me in achieving this effect

    https://material.io/components/app-bars-top#behavior

    when user scrolls down appbar becomes visible which is fine, but as the appbar comes dows status bar color matches the app bar and as it goes away status bar color becomes grey

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel