• Breaking News

    [Android][timeline][#f39c12]

    Wednesday, March 3, 2021

    PSA Android 12 foreground service launch restrictions Android Dev

    PSA Android 12 foreground service launch restrictions Android Dev


    PSA Android 12 foreground service launch restrictions

    Posted: 03 Mar 2021 05:18 AM PST

    I have had problems trying to get immediate background tasks which are unkillable to function correctly. Google has changed the rules every SDK level since M. I recently settled on a Foreground IntentService which works well. These stop themselves unlike Services, queue correctly, and execute immediately (unlike JobIntentServices). The only other option is Workmanager (2.3.0 and above) with the foreground async option, which comes with added Dagger boilerplate.

    Android 12 is now breaking foreground services in backgrounded apps and looking for feedback. I just think this is a very important change they are forcing developers to use WorkManager 2.7 now if you target android 12. So to future proof your app it might be time to look into it if you have services doing important background work.

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

    Released Kotlin 1.5.0-M1

    Posted: 03 Mar 2021 07:24 AM PST

    Taking an Android application and adding Pure Dependency Injection.

    Posted: 03 Mar 2021 08:48 AM PST

    Out of the blue my app received an update rejection, but the affected version is now back in the Play Store

    Posted: 03 Mar 2021 09:47 AM PST

    I added admob banner ads and rewarded ads about a year ago, no recent update changed anything. Today I got the dreaded email:

    "We have determined your app contains code to facilitate Ad Fraud"

    "Your app has been rejected and wasn't published due to this policy issue. If you submitted an update, the previous version of your app is still available on Google Play."

    I am using standard admob library, no 3rd party stuff. Needless to say I am not doing anything fraudulent, banners in a few screens, and rewarded ads option for those users who want to support me extra. I make sure no ads are hidden or accidentally clicked. App has well over a million downloads, ads have been the same way for a year.

    I emailed them for more information, but in the meantime the contested version of the app got restored back to the Play Store (at first it did drop back to a previous version, but after a few hours the most recent version got restored). No email response to my appeal though.

    • Has anything like this happened to many others recently?
    • Did they admit their mistake?
    • What can I expect?
    submitted by /u/DYNALogix
    [link] [comments]

    Android devs have to pay tax on Gross sales prior to google's cut?

    Posted: 03 Mar 2021 05:34 AM PST

    I found something interesting on my 1099-K from Google this year that doesn't align with the gross sales deposits made to my banking account

    So Google will break down the gross sales by each month. For example:

    Month 1: 1000

    Month 2: 1000

    What I see in my bank is about this amount minus 30%, so:

    Month 1 Deposit: 700

    Month 2 Deposit: 700

    But since my 1099-K form lists the original 1000 amount, I have to pay tax on that, which is around 35%. So I'm left with after taxes:

    Month 1 Post-tax: 350

    Month 2 Post-tax: 350

    Does this seem correct? Shouldn't the gross reported to the IRS be the gross that is deposited to my bank after Google takes their 30% cut? Is Google not paying tax on their 30% and pushing that off to the developer's burden?

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

    Best practices for coroutines in Android | Android Developers

    Posted: 03 Mar 2021 03:58 PM PST

    Animated clock inspired by a Twitter post

    Posted: 03 Mar 2021 05:27 AM PST

    Animated clock inspired by a Twitter post

    Yesterday I saw a Twitter post by Aurimas Liutikas where he created a clock animation using Jetpack Compose.

    I was impressed & thought to create a similar animation using a traditional view system just for fun & also to practice Canvas APIs. All credits to the original author for the idea!

    The source code is available on Github.

    https://i.redd.it/jl4mnvnaetk61.gif

    https://github.com/KaustubhPatange/android-animation-samples/tree/master/AnimatedClock-Sample

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

    A tricky situation...

    Posted: 03 Mar 2021 02:48 PM PST

    Hey guys!

    I'm an app marketer so please excuse my lack of dev knowledge.

    I'm working for an entertainment app publisher and with our fast paced expansion into new GEOs, we're facing new challenges. One particular challenge is a tricky one for our developers, so I would some non biased opinions on this.

    In order to run our app profitable, we need "fake" profiles circling our "real" users. Just to kickstart activity. These Fake profiles are created manually, by student jobbers - for each country, each city, each user-base. You get it, it's super inefficient.

    My idea is, to tie a certain pool of fake users to each real user. But according to our tech-team this would mean, they need to duplicate the pool for each real user. Don't seem like a scalable option.

    Would really appreciate some new ideas on this topic

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

    Building a new PC for Android development, AMD or Intel proc?

    Posted: 03 Mar 2021 01:10 PM PST

    Hi.

    So basically title.

    I'm building my first PC after owning 3-4 notebooks in the past 10 years. I was always an Intel guy but I'm kind of curious about what can Ryzen do?

    Since I make a living from Android development I'm curious if is there any cons/pros of processor selection when it comes to Android development?

    I rarely use emulator but still, what about building time? Gradle?

    Thanks in advance.

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

    Sending 18 instead of 32 data length

    Posted: 03 Mar 2021 11:07 AM PST

    val byte = bytes[INT_BYTES -ind - 1].toInt() and 0xFF

    value = value shl 8

    It sends 18 Data length instead of 32. Any idea whats the cause of this?

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

    Releasing Android apps into China

    Posted: 03 Mar 2021 10:08 AM PST

    Hello everyone,

    I am the founder of Maroon Labs. We have developed two apps - Tinder Autoliker & ChatNotes. We intend to serve the Chinese markets with the same apps. Are there any services that allows releasing apps in Chinese app stores without incorporating in China?

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

    For Fun : The AsyncTask Challenge

    Posted: 02 Mar 2021 11:50 PM PST

    Sesame - Android architecture components made right

    Posted: 03 Mar 2021 12:12 AM PST

    Hi. I have developed a library called Sesame.

    Sesame is a set of architecture components for Android development.

    Here are the components:

    1. property - provides observable properties and one-time commands.
    2. dialog - allows to control dialogs from View Models.
    3. navigation - gives a universal way to navigate between screens.
    4. activable - equips View Models with a very simple lifecycle.
    5. loading - helps to manage state for data loading (including paged one).
    6. loop - provides a simple MVI implementation.

    Each component is an independent module. You can use only that you like.

    property is one of my favourite components.

    I have tired to use StateFlow like that:

    val count: StateFlow<Int> get() = _count private val _count = MutableStateFlow(0) _count.value++ 

    With Sesame it looks much better:

    var count by state(0) private set count++ 

    What components do you like? I will be glad to your feedback.

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

    My google Play console in app purchase only display the purchases made from United States. according to unity analytics i have 20 verified transactions on my game. two of them came from US . Play console "Order management tab" only display the two which came from US.

    Posted: 03 Mar 2021 12:50 AM PST

    its only displaying USD purchases even on my payment profile the balance is only $2 which is the purchase made from U.S. my billing country is Philippines. im basically losing all the money my game is making except the ones coming from U.S. how to fix it google play console only displaying purchases made with USD currency

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

    Implementing Unidirectional Data Flow with Kotlin Coroutines article

    Posted: 03 Mar 2021 05:06 AM PST

    Hi! I didn't have time for #AndroidDevChallenge but I wrote about "Implementing Unidirectional Data Flow" when migrating from Imperative to Declarative UIs. It contains an Easter egg, with the new Grid API used from Compose beta-01. Hope you find it useful. Direct link: Implementing Unidirectional Data Flow

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

    Simple text-based Android game: what framework/libraries to use?

    Posted: 03 Mar 2021 02:54 AM PST

    Hey Android devs,

    I've dabbled in Android stuff for quite a while but have never tried any sort of game development. Now, I have plans to make a very simple 2d text-based game; think of an interface like this:[https://s3.crackedcdn.com/phpimages/article/1/6/0/555160_v1.jpg]

    The game would consist of 'talking/swiping' screens, and would move through them by side-swiping from screen to screen. No walking, moving around or anything like that.

    I've looked around on the sub and the wider internet, but I'm a bit overwhelmed with all the game engines out there (Unity, unreal, LibGdx, Korge, Godot). My questions to you guys therefore is: What framework would you recommend for making a game with these specs?

    Technical background: as far as Android goes I've mostly developed apps in Java (I know I know, I should go learn Kotlin).

    Any and all advice is highly appreciated. Thanks!

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

    Automate Dependencies Upgrades With Releases Hub

    Posted: 02 Mar 2021 06:04 PM PST

    Kickstarter to fund marketing?

    Posted: 03 Mar 2021 03:25 AM PST

    My game has a high rating of 4.9 on Google play (1500 reviews) but I don't have enough money to market it.

    I was thinking of starting a Kickstarter campaign to fund the marketing.

    Do you guys think that's a good idea?

    Any suggestions

    submitted by /u/No-Establishment4313
    [link] [comments]

    Seek advice to discover remote IDE for Android development

    Posted: 02 Mar 2021 10:20 PM PST

    As title, I would like to discover the possibility of this approach, our project getting huge and Android Studio on my local getting lagging to modify anything in the app module, and take a very long time to sync.

    One possible solution is the projector https://github.com/JetBrains/projector-server or maybe the VS Code Remote

    Have anyone tried to apply the remote IDE for your Android team? Or would you have any advice for me, please

    submitted by /u/Mike-Discover
    [link] [comments]

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel