• Breaking News

    [Android][timeline][#f39c12]

    Saturday, February 8, 2020

    App Feedback Thread - February 08, 2020 Android Dev

    App Feedback Thread - February 08, 2020 Android Dev


    App Feedback Thread - February 08, 2020

    Posted: 08 Feb 2020 04:28 AM PST

    This thread is for getting feedback on your own apps.

    Developers:

    • must provide feedback for others
    • must include Play Store, GitHub, or BitBucket link
    • must make top level comment
    • must make effort to respond to questions and feedback from commenters
    • may be open or closed source

    Commenters:

    • must give constructive feedback in replies to top level comments
    • must not include links to other apps

    To cut down on spam, accounts who are too young or do not have enough karma to post will be removed. Please make an effort to contribute to the community before asking for feedback.

    As always, the mod team is only a small group of people, and we rely on the readers to help us maintain this subreddit. Please report any rule breakers. Thank you.

    - Da Mods

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

    Update rejected.

    Posted: 08 Feb 2020 09:41 AM PST

    I made new screenshots for my game. I out those screenshots in AB testing and Google approved it and started showing to 50% audience. And now when i applied the experiment result amd Google rejected update saying "graphic violence prominently depicted in app icons, promotional images, text, or videos".

    One time it approves and other time it rejects. What's this nonsense. Or am i doing something wrong here? My games ratings is 18+

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

    Retrofit Tutorial in Android - Part 3 Request Headers

    Posted: 08 Feb 2020 02:14 PM PST

    HTML Admin CMS for Firebase?

    Posted: 08 Feb 2020 03:09 AM PST

    Firebase's own admin layout is pretty much useless and wastes a lot of time so is there any other HTML based admin sites/projects that I can connect my database with and do changes in Firestore? Most data on my Firestore is input from me and it's very hard to create individual nodes again and again since there is a lot of data that I enter.

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

    First app cross platform or nah?

    Posted: 08 Feb 2020 03:01 PM PST

    Hi all, So I came up with an idea for a stupidly simple timer that I want to turn into app. My question is if I should I do a cross platform PWA, use another type of cross platform development, or native if I want to monetize (tryin to help that college budget).

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

    Does the Google Play Ranking Algorithm favor apps with in-app purchases?

    Posted: 08 Feb 2020 02:43 PM PST

    I recently integrated in-app billing into my app and I changed nothing else. Store entry, screenshots, and the description are still the same since months. Suddenly, after the first purchases are made, my daily installs increased by 50%.

    Since Google takes a 30% cut of your revenue it would make sense for Google to favor apps making money with in-app purchases over apps that don't make money at all or just make money with ads (which often results in less revenue for Google, even if the developer is using AdMob).

    Did you observe similar behavior with your apps?

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

    Flows, coroutines, and concurrent ongoing requests

    Posted: 08 Feb 2020 02:15 PM PST

    I had a problem and I'd like to share my solution to see if what I'm doing is fine. Maybe is also nice to talk about coding instead of so many posts about Play Store comments or suspension policies. =)

    My app deals with many georeferenced entities. As you move the map or perform other operations I need to access a web service to get some more info per each of those entities. For some functionality I even have a Flow that collects everything in a given radius to process. The problem is that if I use coroutines ongoing requests will get cancelled needlessly. E.g. if I get a GPS location slightly different the original flow will be canceled and a new one will be created... that will request from the server the same data!

    I need this:

    • Concurrent requests for the same data should wait on the same existing operation.
    • When all clients for a requests are canceled, the request should be canceled after a certain timeout.

    (LiveData can be used for this, but we shouldn't use LiveData for internal data handling anymore, they say)

    I've contemplated more complex results using BroadcastChannels, I've found unimplemented flow proposals... Finally I did this.

    My solution is simply a class that holds a caché of FutureResults that are wrappers around Deferred objects. The wrapper keeps a "waiting count" and when that reaches zero a cancel is scheduled after a given timeout.

    The code:

    class OngoingOperations<K, T>(private val defaultDispatcher: CoroutineDispatcher = Dispatchers.Default, cacheSize: Int, private val timeout: Long) { private val results = object : LruCache<K, FutureResult<T>>(cacheSize) { override fun entryRemoved(evicted: Boolean, key: K, oldValue: OngoingOperations<K, T>.FutureResult<T>, newValue: OngoingOperations<K, T>.FutureResult<T>?) = oldValue.cancel() } inner class FutureResult<T>(private val d: Deferred<T>, private val key: K) { /** only matters if d is not complete. */ private var waitingCount = 0 private var cancelJob: Job? = null suspend fun await(): T { synchronized(this) { cancelJob?.cancel() waitingCount++ } try { return d.await() } catch (e: Exception) { val cancel = synchronized(this) { --waitingCount == 0 } if(cancel) cancelJob = GlobalScope.launch(defaultDispatcher) { delay(timeout) synchronized(this@OngoingOperations) { results.remove(key) } } throw e } } fun cancel() = d.cancel() val isCanceled get() = d.isCancelled val isCompleted get() = d.isCompleted } suspend fun await(key: K, f: suspend CoroutineScope.() -> T): T = ( synchronized(this) { results[key]?.takeIf { !it.isCanceled } ?: FutureResult(GlobalScope.async(block = f, context = defaultDispatcher), key) .also { results.put(key, it) } } ).await() fun completed(key: K): Boolean = results[key]?.isCompleted ?: false @Synchronized fun close() = results.evictAll() } 

    Does this look right?

    When I need to start/wait for something to process I just do:

    ongoing.await(someId) { someLengthyProcess(someId) } 
    submitted by /u/niqueco
    [link] [comments]

    Android TV, and interstitial ads.

    Posted: 08 Feb 2020 05:30 AM PST

    I developed a small app for a client, the app contains AdMob interstitial ads.

    the client asked me to develop the same kind of app but for Android TV. from research online I found that AdMob is not officially supported on Android TV yet.

    is there an alternative ad network that will work with Android TV? does anyone here have any experience with such an issue?

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

    Google limited my Admob account. Whats Problem?

    Posted: 08 Feb 2020 06:05 AM PST

    After one week of showing ad from, Google limited my account. This limitation happened two weeks ago but not fixed yet.

    Which of the reasons below can cause this issue:

    • I've clicked on ads myself for 30+ times in one week.
    • One of the native ads displaying cropped (1:1 ratio) in my App with no title and icon.
    • The Admob Account ID in the current and previous versions of my App is not the same. But the Ad Unit IDs are the same. Let's take an example for more understanding:
      • Older versions of my App registered on my old Admob Account and new releases using a new AdMob account ID. But both new and old versions are serving my new account's Ad Unit (because I can change Ad units dynamically from my server)
    • All of my users are from Iran (the country that is google's restricted list)
    • Because my App does not exist in Google Play, so ad units only serve websites that not engaging my users, and they don't do any action after clicking.
    submitted by /u/henry_2009
    [link] [comments]

    Still Using MVC, MVP

    Posted: 07 Feb 2020 11:32 PM PST

    I just started another Android project fresh. And I have no time to really study and dig in with the latest Android Architecture Components because of tight client deadlines. I am still using Activity, Intent, Adapters the old way.

    I'm wondering if what percentage of Android devs have already used and migrated to the latest AAC? And should I be worried and start investing time to it?

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

    I just published an article about ViewBinding on medium. Please check it out.

    Posted: 08 Feb 2020 05:27 AM PST

    "Exploring ViewBinding in depth" by Somesh Kumar https://link.medium.com/Jprz4AjpU3

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

    How to design the UI in Android with a practice example using RelativeLayout

    Posted: 08 Feb 2020 07:04 AM PST

    SMS to trigger a relay

    Posted: 07 Feb 2020 05:50 PM PST

    I want to use a cheap android phone and whenever it receives an SMS message it will trigger a relay.

    How would I go about doing this?

    If this is not the subreddit for this then reply the subreddit I should ask.

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel