Category "android"

Android 13 Themed Icon cut off / doesnt fit in frame

I'm trying to implement the new themed icons and I have the problem that my icon is always zoomed in by 2x and I cannot get it to fit the canvas. Below you can

Android - DataSource vs Repository

You hear a lot of people talking about repositories and datasources when talking about design patterns like MVVM or MVI. I've been creating repositories for thi

Cannot find setter for attribute app:visibleGone

I am trying to implement the MVVM architecture in my android application. I'm using Kotlin for the same. This is my binding adapter class: class BindingAdapte

Force app widget's light theme on OnePlus phone with Android 12

I have a problem with forcing a light theme of home screen app widget on OnePlus 9 phone with Android 12 (using the OnePlus' launcher). My widget's theme inheri

How to upgrade an Android project to Java 11

I am using the latest Android Studio Arctic Fox 2020.03.01 Canary 8 and AGP 7, and I want to convert my project to use Java 11. Apparently just doing the follow

How to change the outline color of OutlinedTextField from jetpack compose?

Here is how OutlinedTextField code looks like in jetpack-compose: OutlinedTextField( value = "", onValueChange = {}, label = {Text("Input")} ) The

Allowing microphone access(permission) in WebView Android Studio

send audio is not working can you please help I would appreciate if you show me where to write the codes. send audio is not working can you please help I would

android virtual device that failed to load

When i launched the eclipse in window 7 I was getting an error message: parseSdkContent failed Could not initialize class android.graphics.Typeface After doi

Room Database Table is still empty after inserting new data

I've just finished this tutorial for my app. But my problem is that even after I insert the data, my database is still empty. I checked that by viewing it in a

recyclerview problem when scrooling right half screen

When scrolling from left half screen of the mobile scrolling is happening but when i scroll from right half screen scroling is not happening. This is my xml clo

how i can scan ID Card(NIC) in flutter and also get data from it?

I am building an app in flutter and in that app one step is to scan an id card (NIC) and get their name, DOB, expiry date, etc, so I am confusing that how I can

Alternatives to UIAutomatorViewer to inspect an Android app while running it

The developers I'm working with in my team need to make automated integration tests and in some of them need to make actions on particular elements within speci

"error: cannot find symbol" when building for Android in flutter

I keep getting this error when trying to build for android in my flutter app. This all happened when i added firebase messaging version 7.0.3. Even after removi

Logcat messages disappear after a while of showing up?

After few minutes of showing LogCat disappear. I changed the number of LogCat output message to be 10000 from the Window->Preferences->Logcat. But still d

Prevent Android function call from running before its predecessor completes?

I am running a main function that calls three others in succession like this: public void test() { countdown(); secondMethod(); lastMethod(); }

How to integrate Samsung Gear Steps in android Application?

I want to integrate Samsung Gear device for steps in my application, also jawbone Steps and misfit Steps. I've looked at several things, like the Samsung Gear S

Preventing hardware back button android for React Native

I want to prevent the user from going back to the previous screen. So I added code, but this does not work. Are there any solutions for this? The alert pop up i

How to know if Text is visible on Jetpack Compose?

I have a scrollable screen and I would like to do action when a specific text appears/disappears in that screen. Is there any way to do that? Thanks

Getting click event from the webview in android

I am using webView and I want to get the click event of the button on the webview in my app and want to perform operation from my side . But I am unable to get

MainActivity.java - cannot find symbol reactRootView.setIsFabric(BuildConfig.IS_NEW_ARCHITECTURE_ENABLED)

I've upgraded react-native to latest version (0.68) through react-native CLI, and now every time I'm trying to build for android I get this error: error: cannot