Category "android"

Android - onRequestPermissionsResult() is deprecated. Are there any alternatives?

I tried to implement request permissions for writing and reading from storage. Everything worked good but today Android showed me that the method onRequestPermi

Understanding Flutter and React Native [closed]

I am evaluating React Native and Flutter. I am not experienced in both of these frameworks and hence need some information which I did not fin

How to compare date and time in kotlin android?

I have an app on the PlayStore and I am building a feature where the user will not see ads more than a specific number in one day. I am thinking about comparing

Android Studio: An exception has occurred in the compiler (1.8.0_242-release)

While running app, unable to complete compilation. Keep throwing error. I installed jdk and added java_home path, but still get this error. Also, I havent any i

How to change main scope to another in recyclerview, adapter?

This is my code in adapter using recyclerView. How to improve this code to not use Main Scope, but to use scope that could be disposal? I need to have access to

Device rebooting when i click any EditText on login and sign-up screen

Every time I click the password or email EditText to type something, a few seconds pass and my phone starts rebooting I have tried the following: Making a new A

Could not find com.yqritc:android-scalablevideoview:1.0.4 react-native-video in Android

I want to use react-native-video in my project. After installing this package I got this error every time (Only in android). I have added all the additional cod

Using rememberCoroutineScope() vs LaunchedEffect

Context In Jetpack compose, we have the option of using rememberCoroutineScope() as well as using the LaunchedEffect composable in order to use coroutines / run

Android View Binding problem ,public class name and and file name is different

screenshot of layout file Link of the screen shot click here FoodItemBinding.java file is generated by compiler , how the public class name and file name is

An alternative solution to set negative padding values in Jetpack Compose? (java.lang.IllegalArgumentException: Padding must be non-negative)

I'm trying to assign a negative value to the padding modifier but the app had crashed. Have a look at my code. Thanks if you can help or give me an alternative

Android TV emulator managing network speed in runtime

In the old days, when testing my app on an Android TV emulator, I changed the Internet speed through the cellular tab in extended controls (while the applicatio

Installing pcks12 certificate in android "wrong password" bug

When trying to import a pkcs12 certificate file into android for use with the openvpn connect app, I am prompted to input a password. This is the password relev

Android - mixing NavGraph with ViewPager2

I'm looking for the following design in my android app: I want the main screen to be a TabLayout with 3 tabs, and a ViewPager2. From each one of the 3 fragments

How to show Toast Message with Binding Adapter

I dont see Toast Messages. I want to show a toast messagges when click userAddFavoriteButton.. @BindingAdapter("addFavorite") fun bindAddFavorite(userAddFavorit

My MutableStateFlow doesnt emit when called from suspend function in test

I am trying to write tests for my Repository which provides access to my Room database. For this, I wrote a Mock Database and a mock DAO: My Database: abstract

Flutter and Android Release Mode

How I can find out crash logs in release mode in a flutter. In the android studio, I am not able to get crash logs where the app is going to crash.

Jetpack Compose Scrollbars

Is there any way to add Scrollbars to add LazyColumn (ScrollableColumn is deprecated). The Javadoc doesn't mention anything about Scrollbars in Jetpack Compose.

SpeechRecognizerListener giving Bundle[EMPTY_PARCEL] in onResults(Bundle results) majority devices which have android 11

I am Using speech = SpeechRecognizer.createSpeechRecognizer(getReactApplicationContext().getApplicationContext()); speech.setRecognitionListener(Voi

Android - Is there a way to set padding to a webview content?

I've a BottomNavigationView with radius borders, and I need to see the content of the pages passing between the borders. But, one of the BottomNavigationView's

Add adblock in webview

I'm trying to add adblock in my fragment, and when I'm tryed inisialize webview I got underline this on new AdBlockerWebView.init(this).initializeWebView(webVie