Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.

Questions tagged [android]

Android is Google's software stack for mobile devices. For non-developer questions, see http://android.stackexchange.com

Filter by
Sorted by
Tagged with
3 votes
1 answer
39 views

Kotlin coroutines in Jetpack Compose: Dispatcher-usage

I have implemented a timer in Jetpack Compose. It counts down a given amount of seconds. The remaining seconds are displayed. Moreover the past and remaining seconds are displayed as a circular graph. ...
michael.zech's user avatar
  • 4,972
3 votes
1 answer
74 views

Jetpack Compose registration screen

I’ve created a Jetpack Compose function called RegisterName for a registration screen where users input a nickname and agree to an EULA before proceeding. The function works as intended, but I’m ...
dev4Life's user avatar
4 votes
1 answer
81 views

Sharing UI logic between fragments and activity

I have tried to make my code more modular and reusable by utilizing fragments in activity. The purpose is to have a static activity with a FragmentContainerView that hosts various fragments. Each ...
Kevin's user avatar
  • 71
3 votes
1 answer
119 views

Auth0 Credentials Manager in Android app

I am building an Android app that communicates with a REST API using Retrofit2 and uses Auth0 for authentication. The Android app needs to store access token from Auth0 and use it to authorize its ...
Kevin's user avatar
  • 71
4 votes
1 answer
183 views

Logic to check if app was launched for the first time using DataStore

I have written a dummy code to check if an app was launched for the time using DataStore. It is working however i want to know if this can be optimised and i also observed a small glitch initially ...
dev4Life's user avatar
3 votes
0 answers
64 views

Trying to properly modelize app settings in a MAUI app following MVVM architecture

Context: I am working on a relatively simple MAUI app, which includes a Setting page allowing to customize the UX/UI of the app. I am trying to make the best use of the functionalities of MAUI, while ...
Toto's user avatar
  • 131
5 votes
1 answer
112 views

Compose Grid With Lists

I have created a Grid out of using the new concept of List in Kotlin. I'm open to any feed back to how this code could be improved. It functions as expected and I'm happy with the results. ...
xxxVxxxlinux's user avatar
2 votes
1 answer
90 views

Handling View State & Side Effects with Lifecycle Awareness in Jetpack Compose MVI Composable

I'm working on a stateful Jetpack Compose composable that follows the MVI architecture. I'm using collectAsStateWithLifecycle() to observe the view state from a view model, but I'm unsure about the ...
Android Developer's user avatar
2 votes
2 answers
133 views

Simple service that wraps access to json file

I'm wondering if this is the best way to write the Java code I have written. It works, but looks overly verbose, is it possible to rewrite any of the code to make it more concise? Please ignore the ...
Professor of programming's user avatar
5 votes
1 answer
254 views

Flutter Cubit: 2 Screens and Listview

I try to program a small app to track my cost spendings. As state management I use Cubit. As I am a flutter beginner, I wanted to verify if I implemented it correctly. The UI consists of 2 screens: 1 ...
Rasputin221's user avatar
4 votes
1 answer
233 views

Storing icons in Room Database

I want to store some 512x512 icons for my Android app in a Room database. This is so each item in a list can have all the text data along with the image data stored in a single record. The answers to ...
Adam's user avatar
  • 331
0 votes
0 answers
49 views

Good way to coding on React-Native?

I'm new on this field of coding, and I start to create by myself a project for iOS and Android. I'm a bit lost of how I supposed to organize my code, I saw different persons on YouTube doing their ...
Dorian's user avatar
  • 9
2 votes
0 answers
154 views

MVVM signing in using firebase

I'm new to MVVM architecture. I want to have authentication with email + password, google and Facebook. I'm not sure if there should be separate view models for each authentication way: ...
Edziu Kowalski's user avatar
2 votes
1 answer
399 views

Android: Navigation with Hilt + Jetpack Compose

The project is simple: Login screen and a forgot password screen. You can navigate from Login to ForgotPassword. I feel like I overcomplicated things, but I don't know if (and how) it can be ...
Simon's user avatar
  • 265
0 votes
0 answers
287 views

Jetpack Compose: Items-list with Item-Details-view

The app is based upon an exercise from a Udemy-course. The purpose is to become familiar with LazyColumns. I've enhanced the exercise with a Details-view and a navigation between LazyColumn and ...
michael.zech's user avatar
  • 4,972

15 30 50 per page
1
2 3 4 5
52