• Breaking News

    Friday, November 22, 2019

    Android Dev - Weekly "anything goes" thread!

    Android Dev - Weekly "anything goes" thread!


    Weekly "anything goes" thread!

    Posted: 22 Nov 2019 04:40 AM PST

    Here's your chance to talk about whatever!

    Although if you're thinking about getting feedback on an app, you should wait until tomorrow's App Feedback thread.

    Remember that while you can talk about any topic, being a jerk is still not allowed.

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

    Google Play NOT indexing new apps - What's going on?

    Posted: 21 Nov 2019 09:07 PM PST

    If you try to publish a new app, most of the times Google Play doesn't index it, even if you search the package name, developer name or exact match app name.

    EXAMPLE: https://play.google.com/store/apps/details?id=com.gpp.carwash

    If you search for: CAR WASH EMPIRE (exact match) Green Panda Games (developer name - millions of downloads) com.gpp.carwash (package name)

    You won't find the app in the search result, despite for example the app is in the chart in SIMULATION GAME (in Belgium, it is/was around the #25 spot).

    I'm noticing the same from my personal point of view. What's going on?

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

    How relevant is S.O.L.I.D regarding Android?

    Posted: 22 Nov 2019 06:34 AM PST

    Saw in a couple reddit most how juniors have a tendency to learn all of these patterns and over complicate life for themselves. Initially I always thought SOLID was this ultimate principle that's timeless and can be applied anywhere, but just to ensure I don't over complicate anything, is SOLID worth studying? Or is there a few principles that I should get down, and disregard the others.

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

    AnimatedIcons: Max / Min - Styling Android

    Posted: 22 Nov 2019 02:21 AM PST

    Is MultiBinding the best option yet for FragmentFactory + Dagger when we have to deal with Navigation Component?

    Posted: 22 Nov 2019 01:34 AM PST

    Has anyone implemented a FragmentFactory in their project? I was wondering if multibinding with dagger is the best thing to do like described here when we have a Navigation Component involved. On the other hand, Vasiliys post looks pretty nice but doesn't deal with navigation component.

    The problem with Multibinding solution

    1 - If you forget to add a fragment to the dependency graph which would give an exception. (refering to the first post)

    2 - I don't think the author needs to extend a NavHostFragment because he can do in activity defaultNavHostFragment.childFragmentManager.fragmentFactory = injector.getFragmentFactory() (refering to the first post)

    3 - For MultiModules, a core module must know about the fragments which I don't really agree (or if I'm wrong, let's say "Why should my :core_module know about my other modules Fragments?". (refering to both posts, but really depends on the modularization technique that the author has chosen.)

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

    Policy violation: Site Behavior: Navigation in Admob

    Posted: 22 Nov 2019 07:06 AM PST

    Yesterday, i got an email from Admob.
    Site Behavior: Navigation As stated in our Program policies, sites or apps displaying Google ads should provide substantial and useful information to the user. Users should be able to easily navigate through the site or app to find what products, goods, or services are promised. Examples of misguided navigation include, but are not limited to:

    • False claims of downloadable or streaming content
    • Linking to content that does not exist
    • Redirecting users to irrelevant and/or misleading webpages
    • Text on a page unrelated to the topic and/or business model of the website.

    My ad serving is restricted. Do anyone face this issue? How to solve it?

    Please share your experience.

    Thanks

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

    Does anyone face Brazil's DST related issue by using ThreeTenABP

    Posted: 22 Nov 2019 05:13 AM PST

    I have a date/time issue, reported by quite a number of Brazil users.

    I believe it is somehow Brazil's DST related, as Brazil just cancel DST this year - https://linustechtips.com/main/topic/1116333-google-android-devices-fool-most-users-in-brazil/

    But

    1. I can hardly reproduce problem at my side even I try to change all the phone localization, time zone settings to Brazil
    2. My users can hardly speak English, and I can hardly speak Portuguese

    I try my best to convey the info, the urge them switch to a timezone, which previously doesn't use DST at all. But, seem like still doesn't work well.

    I notice the app level library might affect the correctness too - https://github.com/JakeWharton/ThreeTenABP/issues/116 But, although the issue is being closed,it is still not clear to me, how can I ensure my app is embedded with correct tzdb.

    According to the project description

    This library places the timezone information as a standard Android asset and provides a custom loader for parsing it efficiently.

    How can we ensure the "timezone information as a standard Android asset" in our app, is latest and update-to-date?

    Does anyone facing the similar issue as I do, and able to solve it? If yes, can you tell me your secret sauce? :)

    Thanks.

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

    I've added the new CCPA required flag in Admob AdRequest, but the warning didn't disappeared. Do I have to make other changes as well?

    Posted: 21 Nov 2019 11:07 PM PST

    I've added the new CCPA required flag in Admob AdRequest, but the warning didn't disappeared. Do I have to make other changes as well?

    The warning says: " The California Consumer Privacy Act (CCPA) goes into effect January 1, 2020. Learn how to manage your options for users in California. "

    CCPA warning Admob

    My apps are both GDPR & CCPA compliant, I've added the "npa" and the "rdp" in the AdRequest published the apps on the Google Play Store, however the warning didn't disappeared. Is this something normal? Is the warning still visible on your Admob account?

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

    Is nytimes/Store dead? Any up to date alternatives?

    Posted: 21 Nov 2019 12:29 PM PST

    I came across this fantastic library https://github.com/NYTimes/Store which according to its read.me

    A Store is a class that simplifies fetching, parsing, storage, and retrieval of data in your application. A Store is similar to the Repository pattern [https://msdn.microsoft.com/en-us/library/ff649690.aspx] while exposing a Reactive API built with RxJava that adheres to a unidirectional data flow.

    Store provides a level of abstraction between UI elements and data operations.

    It even has support for Room using StoreRoom. However, the last commit was 8 month ago. Several issues have no reply. In addition it seems at one point last year there was a plan for a new version to be written in Kotlin and coroutines(https://github.com/nytimes/Store/issues/334) that went nowhere.

    Is anybody still using this library? Is it still maintained? Any similar alternatives?

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

    My app can't be found in play store

    Posted: 22 Nov 2019 02:10 AM PST

    Hi guys, I uploaded my third app a week ago and it is uploaded in the play store. With my play console I can get the play store page of my app, but the app can't be found even if I search for the exact app name. The first two apps were available after 2 days for search in the play store. I don't understand what's the case. Do you have similar experiences?

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

    Something is weird?

    Posted: 22 Nov 2019 07:34 AM PST

    Hi I launched my app but realised that for these past several days, the download count remains the same which means no one download my game but also at the same time no one uninstall my game. It's like the app data gotten stuck?

    Really weird, this happened after i changed my studio name in the console. Don't know if that will affect the app somehow.

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

    How Swiggy shipped Dynamic Feature Modules

    Posted: 22 Nov 2019 07:31 AM PST

    CCPA nuisance, how do you plan to deal with it? How is this different than gdpr? Do we need to request consent or what? What we need to do to stay compliant?

    Posted: 22 Nov 2019 01:32 AM PST

    Motion layout, help needed. Cannot set onSwipe and onClick on same view at the same time.

    Posted: 22 Nov 2019 07:05 AM PST

    What do devs at Google have against SOLID principles?

    Posted: 22 Nov 2019 06:53 AM PST

    So I've been writing a book for beginners about Android development. When writing the RecyclerView section, I realised there's virtually no SOLID principle Google managed to not break in their implementation of the RecyclerView.Adapter. Figured I might as well give it a go myself. Thinking of giving the same treatment to the rest of their code, too. Please do share your thoughts!

    https://github.com/EranBoudjnah/solid

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

    Is there a way to not count what I assume are Google's test devices in stats?

    Posted: 22 Nov 2019 06:38 AM PST

    Hello!

    I'm fairly new to app development, but I've noticed that every time I upload a new build I get a flurry of new "users" in the Google Play Console and a flurry of new devices / users in my Analytics.

    We're keeping things at VERY small numbers right now, and we have enough back-end data to know that these aren't actual users (they don't make it past the login screen), so my assumption -- based on the timing and the fact that it's all android devices -- is that this is Google running some kind of testing suite on the new build.

    The problem is it's throwing off all of our reporting. We can't get an accurate read through GPC or Analytics on what's actually happening.

    So I'm wondering two things:

    • Do that suspicion sound correct? Are these likely test devices?
    • If so, is there any way of excluding these devices from reporting?

    Thank you!

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

    Am I missing something? (Android UI)

    Posted: 21 Nov 2019 10:30 PM PST

    If this would better be posted in the questions the read I apologize, but it seemed a bit long winded for that, so here goes…

    I'm a long time iOS/Apple dev who somewhat recently became responsible for the maintenance and development of an Android app. So far Kotlin seems pretty reasonable coming from Obj-C/Swift and the XML layout system is sufficiently similar to Interface Builder, so it hasn't been too bad… until now.

    Today I built a garden variety reusable alert dialog class, something which doesn't lend itself well to XML with how wildly alerts differ between uses… a dynamic code-based approach is better suited for the purpose. At the very least, some elements have to be dynamic to avoid creating a ton of redundant layouts.

    That wouldn't be a problem, but it would seem that the Android UI toolkit is not well designed for use in code. The XML and Java APIs for controls often don't mirror each other, requiring constant doc diving and googling, and often things that are easy in XML can't be done at all in code — point in case, I couldn't find a way assign sizes to UI elements in true DP in code and had to concede to using manually calculated truncated to ints since LayoutParams can't take floats, resulting in 1px dividers looking different between code and XML. Worse, it seems like some of the default styles/colors/etc XML controls default to aren't accessible in code.

    So now I've got a setup with a bunch of single-control XML "layouts" that get inflated in code as needed, which is a bit awkward but almost works, except some of the layout properties on these controls gets discarded after inflation, returning me to the truncated DP problem.

    This is such a huge contrast to iOS that it seems impossible. Had I built this alert class for iOS, it would've been dead simple to build it fully dynamically without XIBs at all because code and XIBs are 1:1 in capability. Am doing something wrong here or is programmatic layout on Android really in this bad of a state? Are there any tricks people use to smooth things over a bit?

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

    Is it possible to issue refunds via API?

    Posted: 22 Nov 2019 12:25 AM PST

    I have a non game app idea that offers the purchase of "tokens" that can be used in the app to buy a service (in this case, it's not a game, but it is content within the app that cannot be used outside the app). The android monetization policy says this:

    Developers offering products within another category of app downloaded on Google Play must use Google Play In-app Billing as the method of payment, except for the following cases:

    Payment is for digital content that may be consumed outside of the app itself (e.g. songs that can be played on other music players).

    I would like for my customers, if they bought say, 500 tokens ($5), spent 200 ($2), but they decide they are done with the app or don't wish to purchase any more and decide they need their tokens back, they can "cash out" right away. ($3). I could implement this with a "partial refund" functionality for in-app purchase of the initial 500 token item.

    However, it seems like such "partial refund" functionality for in-app purchases can only be done manually through the developer console, not through an API.

    What should I do here?

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

    How long does the Google Play store take to approve an app? (in November 2019)

    Posted: 22 Nov 2019 01:43 AM PST

    I have heard that this year the approval time has been increased to 7 days or more. I've also read that if your app is 18+ then the approval process is faster?

    I have published apps prior to this and it took a few hours, but this was a few years ago. I am building a new google developer account for my new startup and we need to publish the app within a week.

    Can someone please advise?

    Edit: Does anyone know if its better to publish the app using an old developer account I have? Would that be faster to get approved?

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

    Android Studio 3.5.1 freezing

    Posted: 22 Nov 2019 12:13 AM PST

    Am I the only one who's truggling with component refactor in layout designer?

    In about 10% of cases my project just frozes and spams log errors in log files. It's not only this version, I have opened ticket for plenty months about this and it's just not going away. So I basically have to just close the program throughout task manager, thus results in unsaved changes.

    Thanks Google, very cool!

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

    Why Epoxy do not work with wrap_content Height, it wont scroll

    Posted: 22 Nov 2019 03:59 AM PST

    Code

    <com.airbnb.epoxy.EpoxyRecyclerViewandroid:id="@+id/recycler_view"android:layout_width="match_parent"android:layout_height="match_parent" />

    Tell me if more code is required I will put

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

    [INFO] Current bounty is approx. $130 USD towards the development of a stable ROM for the Nubia Red Magic 3

    Posted: 22 Nov 2019 12:57 AM PST

    Q about browsers refreshing page after being minimized

    Posted: 21 Nov 2019 07:05 PM PST

    Hey all,

    I hope this question is okay here. I have to constantly use a website for work that does pretty much everything via ajax type requests (ie, the address never changes) and I'm trying to understand how browsers react to reloading the page or not after being minimized (via the circle "show home screen" button).

    I normally use FF but the site doesn't work properly there. (Devs suggest Chrome but I'm trying to avoid if possible). So I tried Brave and it works fine there but anytime I minimize it, it reloads then page when opened back up so I have to take 3 steps to get to where I was at which is a PITA as I constantly have to go back and forth.

    Then I tried Kiwi, another Chrome based one, and it was great for a week or so (meaning it didn't refresh when opened back up) but lately it started to behave more like Brave, where it would reload it. Now it's 50/50 on if it does it or not.

    I might just give up and try it with Chrome but I was hoping to understand what exactly determines this behavior. Lately with Kiwi it's usually ok If I bring it back up quickly and after minimal interaction with other apps. But before it wouldn't force a reload even if some time has passed and I used several apps in the meantime, and I'm wondering why that is, and if I can do anything to avoid having the page reload.

    Thanks

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

    What are your thoughts on Mapbox opposed to Google Maps in your app?

    Posted: 21 Nov 2019 06:43 PM PST

    I'm thinking about one or the other. What are your thoughts on either?

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

    No comments:

    Post a Comment