Skip to main content

All Questions

Tagged with
3 votes
1 answer
115 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
5 votes
1 answer
89 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
68 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
1 vote
0 answers
57 views

Architecting my Compose UI

I have designed a layout that includes recipe details and three CTAs in the app bar to share, delete, and edit recipes. I need feedback regarding the architecture of my Compose UI. ...
Android Developer's user avatar
1 vote
0 answers
64 views

Learning Jetpack Compose: TabBar with Paging Screens

I'm piecewise reimplementing an existing iOS app. My initial go at it visually looks like this: I'm looking for any feedback on more idiomatic ways to implement what I've done. There's a couple of ...
Travis Griggs's user avatar
2 votes
1 answer
389 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
  • 245
1 vote
0 answers
263 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,358
4 votes
1 answer
894 views

Android + Kotlin advanced color picker (HSV and RGB)

For almost the past year, I have been working on a pixel art editor for Android. My pixel art editor was relying on an external library for its color picker. For 0.2.0, I wanted to change this by ...
thebluepandabear's user avatar
0 votes
3 answers
217 views

Android - A way to show/hide loader without writting false/true in every viewmodelScope.launch

I have been writting a lot of code that looks like this ...
George Shalvashvili's user avatar
2 votes
1 answer
76 views

Processing charge current error messages with HashMap<>

I have certain error states that I am displaying in my Android TextView but only one message is displayed at a time and if all values are set to 0, no message is displayed. So, I check all the values ...
Dylon Jaynes's user avatar
2 votes
1 answer
48 views

Observe LiveData to indicate whether or not to display TextViews in MVVM

In the context of MVVM, is this an efficient way to communicate to the view that I should display some TextViews? Any advice on how I can improve it? ViewModel code: ...
Dylon Jaynes's user avatar
3 votes
0 answers
1k views

Jetpack compose login screen + ViewModel

Im working on the login screen for my application. It has fields for users email and password. Also users can click on forgot password button to send an email with new passsword. It can validate these ...
Destroyer's user avatar
  • 477
2 votes
0 answers
178 views

Android architecture and dependency injection of domain layer usecases

I am implementing some of the architectural designs from Google I/O's app to my own app, but I have come across something in their app that has created some confusion for me. They have a domain layer ...
CJR's user avatar
  • 151
3 votes
1 answer
1k views

Getting a single result from multiple LiveData objects

I have an Android viewmodel for a Fragment that requires the user to perform multiple tasks. In addition to a LiveData object to track the status of each task, I ...
Moshe Katz's user avatar
5 votes
1 answer
3k views

Calculator App with Kotlin and Android Studio

Hello I am an absolute beginner with Kotlin and Android Studio. I want to hear what I could do better for the next time or any flaws my code has. The code implements a four-function calculator (+ - ✕ ÷...
cp54lory's user avatar
4 votes
1 answer
435 views

Fragment to control and show camera images

I have never tried this before. Just started with Kotlin and Android CameraX. Here is a fragment I would like some feedback on so I can writer safer and better Kotlin code. ...
El_Loco's user avatar
  • 169
1 vote
1 answer
376 views

Android user input validation

I have made a tiny Android-project to familiarize myself with user input validation. The app just has an EditText-control for user input, a button "Compute Result" and a TextView, which ...
michael.zech's user avatar
  • 4,358
2 votes
1 answer
76 views

Code for working with a tasks in To-Do Android application

Overview I am working on an android To-Do app. I have a piece of code that I use to work with tasks.I am new to android development and want to grow, so I would really like someone to rate my code and ...
Destroyer's user avatar
  • 477
2 votes
1 answer
259 views

MutableLiveList class for android

I have wrote a MutableLiveList class for android, similar to existing MutableLiveData, but this class instead handles a list and ...
Sourav Kannantha B's user avatar
4 votes
2 answers
709 views

Android Tic-Tac-Toe

I have made an Android Tic-Tac-Toe adaptation as a weekend-project. Here's the Kotlin-code. MainActivity: ...
michael.zech's user avatar
  • 4,358
2 votes
1 answer
360 views

UDP image livestream from Android device to C# desktop application

After searching a lot, on how to do it and not finding any good solutions, I implemented my own UDP livestream from an Android device to a C#/WPF desktop application. It works, however, since I get ...
Roland Deschain's user avatar
3 votes
1 answer
69 views

Generating multiplication questions and answers for a quiz style app

See this link for previous post on this subject Generating mathematical questions and answers I have an Android quiz app that I am building to learn kotlin / android app development. Here is an object ...
UnknownError's user avatar
2 votes
1 answer
163 views

Generating mathematical questions and answers

I have an Android quiz app that I am building to learn kotlin / android app development. Here is an object I have which acts as one of many question builders. Is there a better way of writing this? <...
UnknownError's user avatar
4 votes
0 answers
2k views

View Binding with Base Classes

UPDATE: After getting "a kind of" affirmation from various platforms( my discussions on twitter, reddit, other stack overflow posts,etc) I have written an article on this style of view ...
ansh sachdeva's user avatar
4 votes
0 answers
223 views

A better understanding for separation of concerns. Android; Kotlin

I am an Android developer with only 5 months of experience. I am still learning and trying to do my best. Right now I am interested in concept of ...
vt-dev0's user avatar
  • 183
3 votes
1 answer
43 views

How to speed up drawing process of output from .tflite model

I have piece of code where I draw output from model pixel by pixel: ...
SkypeDogg's user avatar
  • 131
3 votes
0 answers
948 views

Generic RecyclerView Adapter in Kotlin

I've just finished implementing a Generic RecyclerView adapter in my Android app, written in Kotlin. BaseAdapter.kt: ...
milancodes's user avatar
4 votes
1 answer
2k views

Correct flow between Kotlin, Realm and ViewModels using Coroutines

I'm stepping back into Android after being away from it for about a year. Trying to get an out of date app of mine back on its feet, and continuing work on it. The app was written using Java, MVP, ...
BHogan's user avatar
  • 41
4 votes
1 answer
147 views

Finding the type of number entered by the user

I am making a fractions calculator that can calculate fractions, whole numbers and mixed fractions. So there is a String fraction, which is the input. Also, the user will enter the fraction in a ...
DeathVenom's user avatar
5 votes
1 answer
345 views

Code for sorting items in recyclerView

I'm have recyclerView which is needed for displayed for show list of my audio records. I added the ability to sort my audio records. Please take a look at the code that I use for sorting and tell me ...
Destroyer's user avatar
  • 477

15 30 50 per page