• Breaking News

    Wednesday, March 3, 2021

    Android Dev - PSA Android 12 foreground service launch restrictions

    Android Dev - PSA Android 12 foreground service launch restrictions


    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]

    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]

    Released Kotlin 1.5.0-M1

    Posted: 03 Mar 2021 07:24 AM PST

    Mavericks, Meet Jetpack Compose

    Posted: 02 Mar 2021 01:35 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]

    For Fun : The AsyncTask Challenge

    Posted: 02 Mar 2021 11:50 PM PST

    openmobilemaps/maps-core The lightweight and modern Map SDK for Android (6.0+) and iOS (10+)

    Posted: 02 Mar 2021 02:40 PM PST

    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]

    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]

    Compose beta01 sample app with mvvm and without AAC-ViewModels

    Posted: 02 Mar 2021 11:31 AM PST

    Hello! I have written a series of 3 posts where I propose manually handling config changes and avoiding AAC-ViewModels, among other things, in fully compose apps.

    I just published part 3, and with that a sample app to show what I explain in those articles, plus some other things.

    Some headlines for the app:

    • MVVM with flow, and with no fragments, no AAC-ViewModels, and no AppCompatActivity

    • config changes handled manually

    • UI adapts to landscape or multi-window (with a simple animation)

    • ViewModels scoped to a screen, nav sub-graph, or the whole app

    • Koin DI with scopes bound to nav destinations

    • it saves state

    • custom view (clock)

    As you can see st the start of the Readme, there are reasons for the (sw) design decisions i chose, and these are explained in the articles that you can also find in the Readme.

    Any discussion, improvements or code review are more than welcome :)

    submitted by /u/lotdrops
    [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]

    My app currently sending 18 Data Length to other Devices via BLE, Is there a way to make it send 32 instead of 18? Thank you

    Posted: 03 Mar 2021 03:39 AM 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]

    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

    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]

    Jetpack Compose vs SwiftUI

    Posted: 02 Mar 2021 02:16 PM PST

    Hello, has anyone tried Jetpack Compose that already knows SwiftUI? Can you compare those two?

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

    New Mobile Native Foundation to Foster Development Collaboration - Linux Foundation

    Posted: 02 Mar 2021 10:08 AM PST

    Should I learn native dev before hybrid

    Posted: 02 Mar 2021 06:21 PM PST

    I saw a video on youtube that said that it's not really necessary but if you don't know anything about native dev this will really reduce the quality of your apps. It's that true? Can someone explain me why?

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

    No comments:

    Post a Comment