Category "android"

How support PhoneStateListener for APIs below 31?

I have discovered that the code of my application has been deprecated. I was using PhoneStateListener class but now I see that this decreasing for API 31 and th

Best practice for combining android client, spring-boot backend and Oauth2 social login

I am attempting to create a project that combines an Android client with a spring-boot microservices architecture in the backend. The client application will co

Not sure how to convert a Cursor to this method's return type in Room Android?

I am getting the following error when I build my application Not sure how to convert a Cursor to this method's return type (kotlinx.coroutines.flow.Flow<? ex

<a /> tag with a child image opens the image in new tab instead of the <a /> tag's link when clicked

I have an anchor tag <a /> with and image as a child , basically I want to create an image that works as a link .in this case the image is a youtube thumb

Duplicated class Koin org.koin and io.insert-koin

I'm using two library that have dependencies of two different versions of Koin. One of the library has org.koin:koin-android:2.0.1 and the other has io.insert-k

App is not working and shuts down on Samsung Galaxy S22

Samsung Galaxy S22 users are complaining that they cannot login to app (probably related to Facebook Login) and the app crashes - presenting them with the follo

Flutter snapshot lost data after update in offline

I created a simple application that displays a list of movies from Firestore DB. When you tap the movie, the number of likes increases by one. The problem occur

MutableStateFlow and Firebase console with jetpackCompose

I don't know why, but my text in MutableStateFlow doesn't change when i'm changing the string in firebase console. Can someone help me and say why ? I'm putting

Firebase Query in Android returns random number of items altough multiple items match the query

I am using the Firebase Realtime database and I constructed a query for the node "Orders" which should return all items whole attribute "orderID" is equal to 2.

How to open SQLite DB created by one Xamarin Android app in another app?

I have a Xamarin Android app which creates SQLite DB. After reinstaling this app I am not able open the DB with a new version of the app. For the testing purpos

Convert EditText to TextView Programatically? [duplicate]

What I Want I want to convert EditText into TextView programmatically. <EditText android:id="@+id/inputValue" android:layout_width=

How to run android app (.apk) inside a docker container without emulator

I want to run android apps inside a docker container to run them on Linux. I know there are ways to run android apps using some tools like Anbox or Genymotion b

When I Update my Phone to Android 12, Installation did not succeed. The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

I was working on my project perfectly since I Update my phone to Android 12 unfortunately when I run the project to my phone this Error appears: Installation d

Keep data in ListView after refresh - Android Studio

I have a Main Activity and PersonListView Activity. In Main Activity, there are some input text and when click save button, it will send data and save to listvi

I am trying an else if statement for validation email however it throws an error on else if(password.isEmpty) saying "else without if"

@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCRE

Failed to create AR session in AR supported devices

I am trying to implement AR Core feature in my app. This works fine in few devices (supports AR core - One plus 6T and Xiaomi Redmi Note 8). Doesn't work in few

Kotlin: issue with NestedScrollView with RecyclerView loading all data at start

I have a fragment that has multiple elements in it, some textViews, imageViews, a page ViewPager for ads and at the bottom I have a recyclerView. I want them a

Need help changing the button text using Android Studio

Sorry if asked before, but I don't find a solution on the web. As mentioned in the title, I don't know how to change the button text on this app (screenshot) th

How to pass an image from one composable function to another in Jetpack Compose?

I am developing an app with texts and images. The images appear small, like thumbnails, on one composable (activity), alongside the text. The idea is: when the

Is that posibble to modify APK to pass all traffic via VPN?

Is that possible to modify, patch Android app, to pass all application traffic through some ip (country region) ? For example inject code for pass traffic throu