2,521 questions
0
votes
1
answer
38
views
Androidx's cardview with rounded corners showing gray color on the edges
This is my layout:
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
...
0
votes
0
answers
33
views
UWB ranging does not start with multiple peers using multicast mode in androidx.core.uwb
I am working on an Android UWB application using androidx.core.uwb.
When I add multiple peers to the device list and use multicast mode, ranging does not start at all.
With a single peer, ranging ...
1
vote
1
answer
111
views
Android: how to fix "Cannot resolve symbol 'R'" with androidx and search_close_btn?
In my Android project, I have an onCreateOptionsMenu(Menu menu) to show a SearchView. The below line sets up an "X" graphic as a close button for the SearchView, which is shown when the ...
1
vote
0
answers
45
views
Fragment leaked by androidx.fragment.app.SpecialEffectsController$FragmentStateManagerOperation
I have Navigation Component (version 2.9.0) with androidx Fragments (version 1.8.6) and Predictive Back and androidx.transitions (version 1.6.0) with gesture navigation enabled. I'm seeing this leak ...
-1
votes
1
answer
65
views
Why does adding a provider crash android app? [duplicate]
Here is the problem in its minimal version. I have an android app that does nothing except print the sdk version in its onCreate method. I am using the AndroidManifest
<?xml version="1.0" ...
0
votes
0
answers
13
views
Responding to fragment navigation changes in androidx.navigation
The documentation for FragmentNavigator says
The current Fragment from FragmentNavigator's perspective can be retrieved by calling FragmentManager.getPrimaryNavigationFragment with the ...
0
votes
1
answer
92
views
Androidx: Cannot resolve method 'getDialog' in 'ListPreference'
I have used a custom ListPreference which worked well before. Then upgrading to Androidx, it appears this error:
> Cannot resolve method 'getDialog' in 'ListPreference'
import androidx.preference....
0
votes
0
answers
33
views
How to avoid the AndroidX Photo Picker to display duplicates for photos with multiple formats (RAW+JPG)
I am using the new Android Photo Picker (https://developer.android.com/training/data-storage/shared/photopicker) in my app, but when the user configured the camera to store both RAW and JPEG images, ...
0
votes
1
answer
135
views
MAUI Java class resolution fails even with dependencie added
I want to launch from dotnet maui an Android activity implemented in Kotlin, that uses Jetpack Compose elements.
For that, I have my Kotlin class
open class ExampleActivity : ComponentActivity() {
...
0
votes
0
answers
36
views
Why does TaskStackBuilder.startActivites briefly start all Activities?
I am trying to use Backstack to handle navigation when opening my app via a deeplink. Basically, the deeplink opens a details page, and I want pressing Back to take the user to a home activity for the ...
0
votes
1
answer
573
views
How to Set a Custom PNG Image as a Splash Screen on Android 12+ (API 31+)?
As I understand, from Android 12 (API 31+) the correct way to set the SplashScreen of the app is via the androidX core SplashScreen library:
<style name="Theme.App.Starting" parent="...
0
votes
0
answers
18
views
How to restore module in android studio
I uninstalled the module that should not have been deleted by mistake. What should I do to solve the problem caused by the uninstalled module? .gradle, build, and src folder turned red and I received ...
1
vote
1
answer
80
views
listOf, immutableListOf, objectListOf
I know the listOf is from the kotlin collections and we usually use that.
listOf(1,2,3)
When I started developing in Compose I learned about the Immutable Kotlin collections library and been using it ...
6
votes
0
answers
116
views
How to receive Bluetooth headset play/pause events when TextToSpeech.speak()?
I am trying to handle the pause/play button from a Bluetooth headset (e.g. Jabra Elite 7 Pro) by simply logging into Logcat a message whenever it is pressed. The “twist” is that this is during ...
2
votes
1
answer
1k
views
Android Resource Linking Failed: android:attr/lStar Not Found with external_app_launcher
I'm facing a build issue in my Flutter project when using the external_app_launcher package. The build fails with the following error:
Execution failed for task ':external_app_launcher:...
0
votes
2
answers
138
views
Why aren't photo editors accepting URIs from the photo picker?
I want to request a photo from the user using the system photo picker (i.e. with a PickVisualMedia request), then send another Intent for a photo editor to crop the photo. If I just send the URI ...
1
vote
1
answer
269
views
Crash when using androidx.window on OnePlus and Oppo devices
I added this code to my books app to recognize foldable devices (deleted unrelevant code).
On OnePlus and Oppo devices (not foldable) the app crashes.
It happens only in Android OS bigger than 13.
...
0
votes
0
answers
57
views
Wear OS Layout Issue: Only Upper Left Quadrant Usable on Samsung Galaxy Watch 4
I'm developing a Wear OS toy app for a Samsung Galaxy Watch 4. Despite what I believe to be correct configurations (i.e. no errors in app building or deploying - except for the "glitch" I ...
1
vote
0
answers
201
views
How to process each video frame when using Exoplayer play a RTSP stream?
Here is a similar question, I am using exoplayer to pull and decode a RTSP stream, it can display the video now, but I want apply a deep learning model to detect something appeared on each frame.
From ...
0
votes
1
answer
85
views
sync jitpack.io in gradle 7.0+ (with changing settings.gradle) and confront error
after sync below code :
settings.gradle >>
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement {
...
0
votes
2
answers
47
views
Unable to get path file ( not media ) using Intent [duplicate]
I have this code where basically i got a file path ( not a media one ), for some reason, in some Android 10 devices I´m getting the path as
/document/msf:<number>
In the manifest I have
<...
1
vote
1
answer
490
views
Create a simple form using `TextField`s and a submit `Button`?
Looking at a huge number of lines-of-code to do a basic task:
First the imports:
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx....
1
vote
0
answers
225
views
When using navGraphViewModels with navigation graph based on kotlin DSL the app crashes
I'm initialising a graph in Activity using Kotlin DSL and using navGraphViewModels() to acquire an instance of vm in the onCreate() of the fragment. However after process death the app crashes
Caused ...
1
vote
0
answers
92
views
Call activity.setLocalNightMode before activity.onCreate() leads to inconsistent resources / colors
We want to set the localNightMode of an activity before the activity is created, to avoid an activity restart.
Therefore, in the onCreate we call:
delegate.localNightMode = NIGHT
delegate....
1
vote
0
answers
871
views
Can't find Transformations in androidx.lifecycle
I've got an unresolved failure while importing androidx.lifecycle.Transformations after adding the related dependencies in the build.gradle.kts:
enter image description here.
Following are the ...