r/androiddev • • Jun 16 '14

Android Needs A Simulator, Not An Emulator

Thumbnail
jakewharton.com
212 Upvotes

r/androiddev • • Jan 19 '26

Kotlin 2.3 finally kills the dual property _uiState uiState boilerplate in ViewModels

211 Upvotes

Kotlin 2.3.0 introduces Explicit Backing Fields, which finally kills the need for dual property declarations (the _state vs state pattern).

Before:

private val _uiState = MutableStateFlow(Loading)
val uiState: StateFlow<UiState> get() = _uiState

fun update() { _uiState.value = Success }

After (Kotlin 2.3):

val uiState: StateFlow<UiState>
    field = MutableStateFlow(Loading)

fun update() { uiState.value = Success } // Smart-casts automatically!

⚠️ Note: This feature is Experimental. To use it, you must add this flag to your Gradle build script:

KotlincompilerOptions {
freeCompilerArgs.add("-Xexplicit-backing-fields")
}

for more information check out this link: https://kotlinlang.org/docs/whatsnew23.html#explicit-backing-fields


r/androiddev • • Apr 25 '20

Github Template for starting an Android app project with: 100% Kotlin + Github Actions + ktlint + Detekt + Gradle Kotlin DSL + buildSrc dependencies already set up.

Thumbnail
github.com
211 Upvotes

r/androiddev • • Nov 14 '19

You can define an extension to a companion object

Post image
211 Upvotes

r/androiddev • • Feb 15 '17

Game removed due to having "Flow" in the title, what do I do?

211 Upvotes

My game City Flow (/r/CityFlow) has been removed for copyright trademark infringement, due to containing the word "Flow" in the title.

The gameplay, design, genre etc is completely different to the claimant's game, so I can only hope this is an incorrect claim.

I've emailed their lawyers directly (as the takedown notice stated), as this seems ridiculous to me. Are there any further steps I should take?

Jake


Update: Received a response from the lawyers:

"Jake, I understand your frustration given that your app has been removed. But Google has agreed that it does infringe Big Duck's numerous worldwide registered trademarks for "Flow" for mobile games and puzzle games. To have your app approved, you must remove the "FLOW" trademark from the app title. "

Update: I'm going to change the name this weekend when I get back home. I can't fight a legal battle. If anyone knows anybody who could help I'm all ears, but I think City Flow is no more.