Quantcast
Channel: Active questions tagged android - Stack Overflow

What is the difference between base-master.apk and base-master_2.apk?

The bundle split configuration: bundle { language { enableSplit = false } density { enableSplit = false } abi { enableSplit = true } }Build AAB:gradle bundleReleaseExport APKs from the AAB:java -jar...

View Article


Parsing query strings on Android

Java EE has ServletRequest.getParameterValues().On non-EE platforms, URL.getQuery() simply returns a string.What's the normal way to properly parse the query string in a URL when not on Java EE?It is...

View Article


How can I update existing notifications in Android ?

I am using the following code for displaying notification . Upon displaying the notification , I go to the activity if I click in the notifications .void Notify(String notificationTitle, String...

View Article

Unresolved reference: FirebaseMessagingService even after adding...

I have an app that I want to add Firebase Cloud Messaging. Now, when configuring the services, I am getting this error in my Kotlin file:Cannot resolve symbol 'FirebaseMessagingService'When I try to...

View Article

BackHandler on Compose Multiplatform (Android and iOS)

I want to intercept the back gesture or tap (e.g., swiping back on iOS or pressing the back button or gesture on Android) to show a dialog before exiting a screen.I understand that in Jetpack Compose,...

View Article


Android OBD-II: How can I clear the distance travelled (PID0131)?

I working on an app that I need to calculate distance travelled from point A to point B (by car).I asked Elm Electronics (chipset manufacturer), and they said there isn’t any standard OBD-II PID to...

View Article

Virtual Phone in Android Studio in loop showing Starting Up…

At the moment, I am trying to get a virtual phone (Pixel 7) running in Android Studio. I already tried the following things, to optimize/ enable the bootup:deactivated VBSactivated...

View Article

Flutter APK does not support 16 KB page sizes on latest Flutter 3.32.8 and...

I’m building a fresh Flutter project using the latest stable versions:Flutter SDK: 3.32.8Android Gradle Plugin: 8.7.3Gradle: 8.12Kotlin: 2.1.0Gradle settings: // settings.gradle.kts plugins {...

View Article


android.view.ViewRootImpl.performTraversals

I have activity with MediaPlayer. But lots of users don`t like it because of crashes with exception:java.lang.NullPointerExceptionat android.os.Parcel.readException(Parcel.java:1333)at...

View Article


How to preview an Android Glance App Widget in Android Studio?

I am following the Android Glance documentation (https://developer.android.com/jetpack/compose/glance/create-app-widget) to create a widget. The widget UI is defined in composable function called...

View Article

Android, WebView and SpeechRecognition-API

I am facing a rather annoying problem: For a customer project I need to have some sort of "end of speech"-detection utilizing HTML5/JavaScript (customer specification). So I did some research and...

View Article

Custom component does not receive focus on Click with clickable Modifier

I'm having trouble making a custom component both focusable and clickable. My goal is to create a custom component that automatically receives focus when clicked. For this, I'm following the official...

View Article

Why should viewModel() only be used at the root composable and the instance...

This documentation about using ViewModel with Compose states:Note: Due to their lifecycle and scoping, you should access and call ViewModel instances at screen-level composables, that is, close to a...

View Article


Android 14+: How to monitor permissions on runtime?

I am searching for broadcast receivers which will be fired when one of those permissions has changed:Battery optimizationCoarse & Fine LocationPost NotificationsRead Phone StateBackground...

View Article

Plugin [id: 'com.android.application', version: '8.8.0', apply: false] was...

This is my build.gradle.kts:plugins {alias(libs.plugins.android.application) apply falsealias(libs.plugins.kotlin.android) apply falseid("com.google.gms.google-services") version "4.4.2" apply false}I...

View Article


Cannot specify link libraries for target "react_codegen_pagerview" which is...

EnvironmentReact Native version: 0.82.1react-native-pager-view version: 6.9.1Platform: Only AndroidNew Architecture: trueDescriptionExecution failed for task ':app:configureCMakeDebug[arm64-v8a]'.>...

View Article

How to parse a BIG JSON (45MB) with kotlinx.serialization...

I'm doing an app for Android that has to parse very big JSON files. The problem is that parsing the hole JSON file at once takes a lot of RAM memory usage and I don't want that (OutOfMemoryError...

View Article


Android: How can I check if a device has Camera2 api features implemented or...

Well, how can I check if an android device has Camera2 api features implemented or not? There are many new features in camera2 api such as manual controls. So how can I know whether, which Camera2 api...

View Article

Android instrumented tests stopped working, after uninstalling Bouncy Castle...

I have stopped being able to run instrumented tests on Android Studio. They were working fine for weeks. But now even the simplest instrumented test will result in this error, in Build...

View Article

agconnect-services.json not found, compiling without HMS - Issue

Hell, I am building a Flutter app that uses both Firebase and Huawei Mobile Services and updated my flutter to 3.35 and used the community version of huawei_push.However, even though I have placed the...

View Article

How do you add custom HTTP headers to Chrome Custom Tabs?

With standard Android WebViews, you use WebView.loadUrl(String url, Map<String, String> additionalHttpHeaders). How do you add your additional headers with Chrome Custom Tabs?

View Article


Android emulator, install certain chrome versions

Im trying to install a specify chrome version on my android emulator, however when ever I drag the apk over the chrome version does update but it crashes when I open it now. I can update to the latest...

View Article


Image may be NSFW.
Clik here to view.

How to adjust tabRow indicator width according to the text above it?

i want to adjust tabrow's indicator width according to text above like this.But I don't know how to manipulate the width of the indicator in a generic way.Intended:My Code:TabRow( // Our selected tab...

View Article

Flutter patrol Google Signin integration test Android throw...

Flutter patrol Google signin integration test throw GoogleSignInExceptionCode.canceled on android emulator. It may disconnect with android device in a while, but after that focus on my app again, it...

View Article

Does A2A java sdk support Android

We want to integrate A2A sdk to Android application.But seems it does not support on Android platform.https://github.com/a2aproject/a2a-java/tree/main?tab=readme-ov-fileAny idea how to use A2A on...

View Article


Image may be NSFW.
Clik here to view.

How to convert a base64 String to a ZPL label for print on a Zebra ZQ630 printer

For context, our application is an Android WebView that loads a url (web app written in React) with a print feature. The flow of the app is that once the print button is clicked, it triggers a print...

View Article

How do I use adb grant or adb revoke?

The Android documentation contains the following description of the adb grant and adb revoke commands. grant <PACKAGE_PERMISSION>Grant permissions to applications. Only optional permissions the...

View Article

$ArtifactResolveException: Could not resolve all files for configuration...

I am trying to make a Spotify clone app in Kotlin. I have not completed it yet but while checking whether it is running or not, i encountered with this error:-Caused by:...

View Article

Image may be NSFW.
Clik here to view.

How to resolve SSLPeerUnverifiedException: Hostname not verified in...

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.await...

View Article



Image may be NSFW.
Clik here to view.

TextField customization

Changing the size of the outlined text fieldI`m trying to change the height of outlined text field, but it cuts the text. That also happens with default text field.OutlinedTextField( value = text,...

View Article


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>