2,518 questions
Score of 1
0 answers
89 views
AndroidX Glance ImageProvider(Bitmap) does not update after system theme changes while ColorProvider content does
I'm investigating what appears to be an issue with AndroidX Glance widgets and would like to know whether this is expected behavior, a limitation of ImageProvider(Bitmap), or a bug.
Environment
...
Score of 0
0 answers
33 views
Unable to run macrobenchmark test with StartupMode.Cold
so i've tried running my own macrobenchmark, also with the android/samples and they both fail on StartupMode.Cold with the following error
java.lang.IllegalStateException: The DROP_SHADER_CACHE ...
Score of 0
0 answers
235 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 ...
Score of 0
1 answer
45 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"
...
Score of 0
0 answers
43 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....
Score of 0
0 answers
55 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 ...
Score of 1
1 answer
163 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 ...
Score of 1
2 answers
278 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:
...
Score of 1
0 answers
70 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 ...
Score of 1
0 answers
67 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 ...
Score of -1
1 answer
81 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" ...
Score of 1
1 answer
109 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....
Score of 0
1 answer
110 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....
Score of 0
0 answers
53 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 ...
Score of 0
0 answers
71 views
TypeError : cannot read property EventEmitter of undefine stack: anonymous@197745:50 loadmoduleImplementation@267:13
In my old React Native project with version 0.60.4, react-native-background-downloader (version 2.3.4) worked well. However, after upgrading React Native to version 0.77, I encountered the following ...