2,522 questions
0 votes
0 answers
42 views
How to disable the “minimize” button in AndroidX CustomTabs?
I’m using androidx.browser.customtabs with a CustomTabsIntent to open a webpage inside my Android app. Chrome shows a minimize button (a small arrow/down icon) in the Custom Tab UI, allowing the user ...
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
26 views
Testing warm start deeplinks using ActivityScenario
I'm trying to switch from the deprecated ActivityTestRule to ActivityScenarioRule but facing an issue with some of the tests. I found out that I need to move from startActivity to ActivityScenario....
0 votes
0 answers
34 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 ...
0 votes
0 answers
191 views
Why is Android Room not found even though I included the Google Repository?
I'm working in a Kotlin project and want to use the Room library for SQlite. So like explained on this site, I added the line id("androidx.room") version "2.7.2" to the ...
1 vote
1 answer
112 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
2 answers
159 views
Lifecycle of ViewModel injected in root composable
I am facing weird behaviour in my application and it's probably because of lifecycle of ViewModel (injected in root composable), but I can't find any information about it in documentation. Problem: ...
1 vote
0 answers
46 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 vote
0 answers
41 views
Could not find dependency for ComplicationManager (androidx.wear.watchface:watchface-complications:1.2.1)
I am trying to the use facilities of the ComplicationManager in AndroidX, and to do so the Gemini AI engine tells me I need to include the following implementation directive in the dependencies block ...
-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" ...
1 vote
1 answer
62 views
How to download screenshots created using androidx.test.core.graphics.writeToTestStorage
I'm in the process of changing the Screenshots created by my Android instrumentation tests androidx.test.runner.screenshot.ScreenCaptureProcessor (which worked) to the new androidx.test.core.app....
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
0 answers
58 views
When I try adding a typography style or even basic the text disappears from the layout
I'm developing an Android application using Jetpack Compose and facing a peculiar issue with text rendering. In my MainScreen composable, I have AnalyticsBox and HabitListItem components where text ...
0 votes
1 answer
95 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
42 views
Why can't my Android app find game-text-input/gametextinput.cpp?
My game uses the AndroidX game text input module. It's been working for a couple years but I recently updated to the latest version 4.0.0 and now Android Studio/Gradle can't find the source file and I ...