275 questions from the last 30 days
Advice
2
votes
8
replies
118
views
Android driver app location sending to server (Taxi booking app)
I developed a simple Android app (A driver app for taxi booking).
App sends its location (lat/lng) every 5 seconds to server using TCP/IP. and server stores the driver location in SQL SEVER database. ...
2
votes
2
answers
262
views
How to use NavigationBackHandler?
I currently have the following code in my Compose Multiplatform project:
var myStateVariable by rememberSaveable { mutableStateOf(false) }
BackHandler(myStateVariable) {
myStateVariable = false
}
...
2
votes
2
answers
105
views
Only first DAO Flow of Room database returns values
I want to retrieve a specific column from my Android ROOM Database but it kept returning an empty list.
Here is the code on my DAO interface:
@Query("SELECT * FROM expense_table ORDER BY category ...
0
votes
2
answers
104
views
After the application is installed, the package name appears as the name. What can I do?
Before installing the app, its name appears normal. After installing it, it appears as com.svc.filemanager.MyApp.
I have a class called MyApp. I added this class to the AndroidManifest under <...
-2
votes
2
answers
121
views
Waiting for coroutine to end it's job to trigger an event [closed]
I have an Activity that is responsible for creating a new entry in the database. In this activity, a button launches a coroutine to do all the database-related stuff, and when it's done, navigate to ...
0
votes
1
answer
216
views
Android App must support 16kb by Nov 1st 2025. Can I release an update of App targetting API 34 post the timeline?
I am working on a .Net MAUI Android app which is built on .net 8 and Android framework target version is API 34 (Android 14).
I am not planning for upgrading my app to target API 35 soon. But I need ...
3
votes
2
answers
134
views
+500
GrpcStreamingCall client buffers packets and flushes only after timeout — not receiving events in real-time
I'm using com.squareup.wire.GrpcStreamingCall along with OkHttp in a Kotlin mobile app to stream gRPC events from a backend service. The issue I'm facing is that the client does not receive the ...
0
votes
2
answers
126
views
Implementation of PdfSharp IFontResolver causes .NET MAUI app for Android to crash
In a .NET MAUI 9 app I use PdfSharp.Maui (1.0.5) to create a pdf document. I don't use PdfSharp.Maui directly but rather PDFsharp which is a transitive package:
using (PdfDocument document = new ...
0
votes
2
answers
64
views
How to load SVG content images(not url) using Coil on Android
For example, the SVG content obtained from the web is:
<svg t="1717950268208" class="icon" viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3....
1
vote
1
answer
174
views
Race condition with android fragment back stack changed listener?
I've got some code which looks like this in my main activity:
class MainActivity : AppCompatActivity() {
private val backStackListener = FragmentManager.OnBackStackChangedListener {
val ...
7
votes
0
answers
124
views
Synchronization Issue Between ModalBottomSheet and Keyboard Animation in Jetpack Compose
I’m encountering a problem with the synchronization of the ModalBottomSheet animation and the software keyboard (IME) animation in Jetpack Compose, and I would appreciate any insights or suggestions.
...
3
votes
1
answer
143
views
Error: Plugin [id: 'com.android.application', version: '8.13.0'] was not found in any of the following sources
I'm getting this error when I try to sync my Android project in Android Studio:
Plugin [id: 'com.android.application', version: '8.13.0', apply: false] was not found in any of the following sources:
...
1
vote
1
answer
78
views
Koltin Compose with MVI results in heavy boiler plate code, how to reduce it?
Compose has great advantages but I feel the readability and code complexity increases when the fields increase.
Here is an example:
data class UserForm(
val firstName: String,
val lastName: ...
0
votes
1
answer
82
views
Migration of Firebase projects / Google analytics 4 properties
We are in the process of merging 2 separate applications(Android & iOS) into one. Each of the application has its own Firebase project, and its own Google Analytics 4 property. So essentially we ...
1
vote
1
answer
89
views
Images inside assets folder not loading after restarting the app
I have a Flutter project and I added some images inside:
assets/images/
I also added the folder in pubspec.yaml:
flutter:
assets:
- assets/images/
The images load correctly the first time when ...
0
votes
1
answer
85
views
Understanding what's happening in this script [closed]
I have a script, supposedly running in Android 12 ksh that works... but I can't understand why or how.
script begins with:
#!/system/bin/sh
is_sourced() {
[ "$_" = "is_sourced" ]
...
2
votes
1
answer
94
views
How to resolve SSLPeerUnverifiedException: Hostname not verified in HttpsURLConnection in NET.MAUI Android app?
My NET.MAUI Android app is throwing SSLPeerUnverifiedException: Hostname 192.168.100.2 not verified when sending POST request to a PHP script located on my desktop's IIS localhost, as shown below.
...
Best practices
1
vote
3
replies
68
views
Any disadvantages to choosing a very low min SDK level for an android app
This is my first time developing an android app and very little experience with any kind of frontend development. The android app is fairly simple in nature will display some graphs and take a few ...
1
vote
1
answer
85
views
Fast way to select large files?
When I use a file_picker or image_picker on a 2 GB file, it takes about 25 seconds until the process after selecting a file is finished. That is quite a long time for users to wait.
As far as I know, ...
0
votes
0
answers
83
views
MLKit GenAI: “Feature not available / Feature 636 is not available” error on Android device
I’m testing the ML Kit GenAI Demo from Google’s official samples:
https://github.com/googlesamples/mlkit/tree/master/android/genai
I built the app with JVM 17 and installed it on a Pixel 6 Pro and a ...
1
vote
1
answer
62
views
Problem accessing URL and catching response
I am completely bemused.
The problem is at line 34.
I have tried all sorts of methods to connect to the url and in all cases the app stops at internet access. and yes the manifest does say
uses-...
Best practices
0
votes
1
replies
55
views
Best practice for localizing a large (16,000+ rows) SQLite database in android
The core of my app is an SQLite database containing over 16,000 strings.
My goal is to translate them into multiple languages in the most performant, memory-efficient, and maintainable way.
I ...
-1
votes
0
answers
92
views
Add redirect URI to Android Oauth 2.0 client ids
I'm trying to enable Google Login inside my app, but I don't see a section to add a redirect URI to my Android Google Oauth 2.0 Client ID.
I'm getting the following error when using expo go React ...
0
votes
1
answer
60
views
Custom icon in Android notification not working
I encountered an issue sending notifications in my Android app. I am setting my custom icon via .setSmallIcon(R.drawable.ic_bublic_2) but android ignores it and shows a default launcher icon instead. ...
-1
votes
0
answers
82
views
Android Compose: Balloon content width and arrow positioning issues in skydoves/Balloon library
Problem Description
I'm using the com.skydoves.balloon.compose library in my Android Compose project to display tooltip views. I'm facing two issues:
Width Issue: The content inside balloonContent is ...