Questions tagged [android]
Android is Google's software stack for mobile devices. For non-developer questions, see http://android.stackexchange.com
779 questions
0
votes
0
answers
15
views
LazyColumn compared to RecyclerView in Jetpack Compose
I’m building a simple Food Manager screen using Jetpack Compose.
The UI allows users to:
Select a food category (Fruit, Vegetable, Snack, Drink).
Select an item from that category.
Add the ...
3
votes
1
answer
52
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. ...
3
votes
1
answer
97
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 ...
4
votes
1
answer
98
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 ...
3
votes
1
answer
137
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 ...
4
votes
1
answer
211
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 ...
3
votes
0
answers
74
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 ...
5
votes
1
answer
131
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.
...
2
votes
1
answer
106
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 ...
2
votes
2
answers
150
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 ...
5
votes
1
answer
268
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 ...
4
votes
1
answer
253
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 ...
0
votes
0
answers
54
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 ...
2
votes
0
answers
161
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:
...
2
votes
1
answer
416
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 ...