• Breaking News

    Monday, February 24, 2020

    Android Dev - Weekly "who's hiring" thread!

    Android Dev - Weekly "who's hiring" thread!


    Weekly "who's hiring" thread!

    Posted: 24 Feb 2020 04:45 AM PST

    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]

    Weekly Questions Thread - February 24, 2020

    Posted: 24 Feb 2020 02:57 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?

    Important: Downvotes are strongly discouraged in this thread. Sorting by new is strongly encouraged.

    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]

    Justifying the Google punishment ladder - on the utility of keeping the escalation ladder from app bans to account perma-bans a secret from developers - can a "policy" be a secret policy? - and whether Google Play management employs this tactic as a defence mechanism to hide incompetence

    Posted: 23 Feb 2020 08:17 PM PST

    UPDATE: from the comments we are now hearing about the screening of accounts of devs by potential employers (probably smaller dev outfits which cannot afford an "associated accounts ban" infection from the new hire).

    If this indeed becomes common, it confirms my warning from a few years ago, that the practice of "associated account ban" could make a pariah out of a developer seeking employment, thus extending Google's power well beyond the Google Play store.

    That this Google behavior, if allowed to continue, will lead to a "Scarlet Letter" of sorts, that affects devs' employability in the wider Android industry.

    It seems the concerns of indep devs just became relevant for employed devs and devs in general who seek employment.


     

    We all know the general way that app bans work, and how they escalate to account perma-bans, and then "associated account bans".

    The bigger question is, what is the utility of perma-banning developers with a policy that is inspired by the archaic "three strikes and you are out" thinking of the Reagan era?

    Even though now we know 3 app bans does not always lead to perma-ban, and sometimes 1 app ban for a new dev leads to perma-ban, what is the logic and motivation for such arbitrariness?

    Since a number of app bans are caused by dev unawareness or sloppiness, how does an escalating punishment regime ensure better compliance? Which sadist at Google though up this scheme?

     

    Unpredictable "policies"

    The current app ban to perma-ban escalation ladder is completely arbitrary and unpredictable from the developer point of view!

    So how does it function as "policy", or as deterrent, if it is completely opaque to the developer?

    The perception it creates is of arbitrary cruelty, under an unpredictable and temperamental boss.

     

    Who thought up this regime at Google?

    Which creative (but out of touch with reality) mind at Google thought all this up?

    And which misanthrope then extended it to the notoriously unfair "associated account ban", where a wife can be banned for the behavior of her husband, and the employer and friends can be banned without explanation out of the blue?

     

    Google's infinite memory

    As the understood behavior stands, there is an accumulation of ill will that a developer can accumulate, which leads to a tipping point where Google finally perma-bans a developer.

    However if a developer has accumulated 3 app bans some time ago, due to mistakes, stupidity and even bad behavior, does Google start forgiving them after some time? What is the motivation for infinite memory of developer sins - so an 18 year old's infractions are remembered well into his 20s?

    Under what motivation should such a developer proceed to develop for Google?

    If they have accumulated 3 app bans already, yet not been banned yet, should they continue developing for Google, or are they on the brink of an account perma-ban?

    If there is no more margin of error - should they embark on a new project ?

    Now it may be that Google erases the bad-will over time, so after some time, the dev is again given leeway to make mistakes. Even if Google does have such an internal policy/algorithm, that is not known by the devs.

    It seems Google doesn't want you to have any visibility into your status at Google. Evidently it sees this as some sort of a leg up - a strategic advantage Google has, but devs don't have.

    The end result of this opaqueness is, that a dev who has accumulated a few app bans may be better off making apps for a newer platform that telegraphs policies better to it's devs.

     

    Developer perceptions

    It is no wonder that a perception exists that Google Play sees app developers as a nuisance. Or as some devs report, how their contacts within Google dry up at a hint of criticism.

    This suggests there is a problem within Google Play management, where they have allowed, or possibly even cultivated a culture of loathing towards app developers - which is a sign of exasperation, and possibly incompetence within those corporate ranks - where insularity is chosen as a defence mechanism over openness (with openness, outsiders get a better handle to challenge management misbehavior).

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

    Developing for Huawei HMS Core App Gallery alongside GooglePlay

    Posted: 24 Feb 2020 06:10 AM PST

    Now that Huawei released HMS Core and all it's SDKs, what approach would be recommended to develop for both platforms (Google and Huawei), as leaving out 400million potential app users would not be a wise choice, and since App Gallery is still pretty fresh, first apps will inherently have an advantage.

    https://developer.huawei.com/consumer/en/doc/overview/HMS

    What I want to know now, what would be the recommended approach to say develop a app from scratch for both ecosystems.

    1. Create 2 seperate android apps, one with Google integration, the other with HMS Integration
    2. Create one app, but use modules, flavours, interfaces to build either for Google Play with GMS or AppGallery with HMS

    Or is there some other way to achieve this?

    Also will Firebase work on Huawei devices? I don't mean Push notifications, but just core services like Database, Storage, Functions. Otherwise it might be wise to migrate to Azure

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

    Fabric is deprecated and will shut down after March 31, 2020

    Posted: 24 Feb 2020 12:48 AM PST

    Fabric is deprecated and will shut down after March 31, 2020, and is being integrated into Firebase. Fabric's Beta will be replaced by Firebase App Distribution and Crashlytics will be replaced by Firebase App Distribution. I found a simple and concise article on how to setup Firebase App Distribution with fastlane. Check it out at
    https://medium.com/@clementozemoya/automated-android-deployments-with-fastlane-and-firebase-app-distribution-b1d1905a4fe6

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

    Sharp ranking drop for most of our keywords?

    Posted: 24 Feb 2020 07:00 AM PST

    Our game lost most of the keywords it was ranking for and don't really understand why. Did we get kinda banned? We haven't changed our app description and title and I'm not aware of any algorithm update.

    Changes we did:

    - Full UI revamp of the app

    Did anyone experience something like this? What could be the reason? Thanks so much for the help.

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

    How do you prevent fragment recreation with Android Navigation Component?

    Posted: 24 Feb 2020 01:15 AM PST

    I have seen people try to save ViewModel, create custom Navigator, etc. What do you guys use and prefer and why?

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

    Enable Android ViewModel to pass in custom parameters with the new Saved State in Android Lifecycle 2.2.0

    Posted: 24 Feb 2020 08:13 AM PST

    Why Cant Flutter Find my SDK ?

    Posted: 24 Feb 2020 08:09 AM PST

    I Have already googled 10 times nothing solves my problem. when i run flutter doctor

    i get this : [✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Linux, locale en_US.UTF-8)

    [!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)

    ✗ Android SDK file not found:

    /home/rootz/Android/Sdk/platforms/android-29/android.jar.

    nothing seems to work not even flutter --config -- path to sdk...

    how can i fix this issue ?

    thank you

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

    What are the best free resources in order to become an android developer?

    Posted: 24 Feb 2020 07:43 AM PST

    Which is the best Android dev tutorial for beginners with programming experience?

    Posted: 24 Feb 2020 06:56 AM PST

    Probably it is a reoccurring question but I am curious about the current state. Doesn't matter if it's paid or free. The more detailed the better.

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

    First time app dev questions

    Posted: 24 Feb 2020 06:53 AM PST

    I've read some articles and posts and still have the following questions. Working with user logins : I'm thinking of using auth0, if I didn't want to use a third party app how could I securely do this on my own from scratch? Is there a clear obvious choice over auth0 for user login authentication. I have worked with local sql and mongodb servers, how do I set up one that I can use with the app. I assume I don't need to print forward and have a server running on my own I'm guessing there's an obvious free solution, like something on AWS probably. Any help greatly appreciated. Any great article or reference for setting up chat functionality on app that allows you to store chat history between users and allow them to chat in real time is greatly appreciated. A lot of what I want to do is covered in Reddit's functionality. I didn't find any tutorial on making a reddit clone, but if you know one similar share it please.

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

    Adobe Xd Design to Real Android/iOS App | Design Weekly

    Posted: 24 Feb 2020 05:30 AM PST

    ItemDecoration doesn't work inside NestedScrollView

    Posted: 24 Feb 2020 04:35 AM PST

    I have implemented RecyclerView with sticky headers and I did it through ItemDecoration. It works as expected in the case of stand-alone RecyclerView. But I have two RecyclerViews, and I need to use NestedScrollView

    <androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:fillViewport="true" android:scrollbars="none"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:focusableInTouchMode="true" android:orientation="vertical"> <androidx.recyclerview.widget.RecyclerView android:id="@+id/menuNewsList" android:layout_width="match_parent" android:layout_height="170dp" /> <androidx.recyclerview.widget.RecyclerView android:id="@+id/listMenu" android:layout_width="match_parent" android:layout_height="match_parent" app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" /> </LinearLayout> </androidx.core.widget.NestedScrollView> 

    Code initialization:

    listMenu.apply { adapter = dishAdapter isNestedScrollingEnabled = false } listMenu.addItemDecoration(HeaderItemDecoration(listMenu, isHeader = isHeader())) 

    Without NestedScrollView it works excellent, but in my case ItemDecoration doesn't work.

    I've found out next information:

    • onDrawOver's are not called on scrolling because RecyclerView.draw() is not called as well.
    • All items are created at the same time (so Adapter creates view holders for all items in the data). I think it happens because of NestedScrollView.
    • I tried to force calling recyclerview's redraw on scrolling but it doesn't work

    I considered combining 2 RecyclerViews into one, but first one has a horizontal scroll, so I'd like to avoid this solution.

    Do you have any advice how to deal with it?

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

    Alphaanimation with surface view.

    Posted: 24 Feb 2020 03:52 AM PST

    I implemented alphaanimation in imageview to get some sort of dissolve effect for transition. I want the same in surface view when transitioning from one to another.but using alphaanimation in surface view gives me black screen or not animating . Please suggest me a solution for this.

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

    A/B test in android kotlin

    Posted: 24 Feb 2020 03:08 AM PST

    In my app there are several a/b experiments running write now in onCreate() i have several if else for handling the flow, is there any particular coding style/practice that I can follow to make it cleaner

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

    Huawei ban and use of 3rd party libraries for development

    Posted: 24 Feb 2020 01:37 AM PST

    Hello

    I am going to port my app to the Huawei store but at the moment I'm not sure how to proceed.

    I know that I won't be able to use the Google services (maps, service location, notification etc) but what about libraries that are developed by Google or by other US vendors? For example, can I use realm.io? or Lottie?

    Thanks

    Gianpaolo

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

    Suggestion: Make scoped storage better for devs

    Posted: 24 Feb 2020 04:43 AM PST

    Last week, I became a GDE in Android. I have written an article on whole process and how you can become GDE.

    Posted: 23 Feb 2020 11:47 PM PST

    How to parse image via url onto a recyclerview?

    Posted: 23 Feb 2020 11:24 PM PST

    Android resource ID under the hood

    Posted: 23 Feb 2020 10:58 PM PST

    Dynamic view permanance

    Posted: 23 Feb 2020 09:48 PM PST

    The app that I am making allows the user to dynamically create cardviews. However once the app is closed and opened I want the created views to remain What would be the best way to do this

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

    TIL if you use `NavigationComponent` in your app, in your xml you should use `<FragmentContainerView ... />` instead of `<fragment .../>`

    Posted: 24 Feb 2020 01:18 AM PST

    There is a bug with using fragment tag that causes exception when activity recreates (like on cofiguration change, or calling #recreate()), but if you use FragmentContainerView (I found it in version 2.2.1), it wont happen.

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

    Kotlin Flow Assert Delight

    Posted: 23 Feb 2020 10:13 AM PST

    No comments:

    Post a Comment