Category "android"

Firebase Android - Skipping initialization

I am currently implementing an Android app, which uses Firebase Cloud Messaging. I've implemented everything according to the tutorial on the Firebase page. Ho

react-native Android Mapbox build problem

I am trying to configure for Android a react-native app which uses Mapbox and works perfectly in iOS. The react-native version is 0.66.2, the Android Studio ver

Jetpack Compose + Hilt: java.lang.RuntimeException: Cannot create an instance of class ViewModel

I started trying jetpack Compose recently and used hilt & hilt-navigation-compose for my app. It works fine with the first ViewModel. However, when I try th

No matching client found for package name "...." with different buildvariant

I want o implement push notification. I added to project level: dependencies { classpath 'com.android.tools.build:gradle:2.2.2' classpath 'com.

Two way data binding issue of \n (new line) while set String into Edittext

I am facing one issue while set data into Edittext when using TWO WAY DATA BINDING which contain HTML tags like " < br > " or \n. when there is \n it

Replacing ACTION_SCREEN_ON withy ACTION_USER_PRESENT?

I have a long-running service listening for sensor input. To conserve battery power, I've stopped the sampling of the sensors on ACTION_SCREEN_OFF and started i

Android: change background color View onClick Button

How I can change the background color to a View this under a button when I click the button? I've tried a selector does not work because the View not change the

How to determine the flow is generated by GPRS 3G or Wifi?

In the flow monitoring program, how to determine the flow is generated by GPRS or Wifi ? Please provide me some ideas and suggestions? Thanks a lot .

Find element using explicit wait within another element

I have the following code: List<MobileElement> messages = driver.findElements (By.id ("body_bubble")); //find all messages MobileElement lastMessage = me

centrally align icons in gridview

I want the icons to be centrally placed on the screen with proper alignment. What are the parameters I need to set? I have tried android:gravity and android:lay

Android AVD - The emulator process for AVD <emulator_name> has terminated

I searched here on StackOverflow and found many similar questions with many different answers, but none of them worked for me. So,I was using the emulators from

Right mouse button in Android

Since API 14, right mouse clicks should have been easy to detect via getButtonState(). However, when I right-click, then it acts as the Back button. The middle

Android API 32 Sources not Found

I am currently using Android Studio Arctic Fox and was trying to dig into the source code of several key Java classes in the Android API 32, however, it states

Firebase Device Test lab: Failed to create a test matrix

I want tot try out firebase device testing - but i get a really generic error message doing so: Failed to create a test matrix. Anyone knows how to get aroun

Error Loading Player. No playable sources found

I am using WebView in my app. I have given the URL of page, web page loads correctly but streaming is not started and it says Error Loading Player. No playable

Android: sound API (deterministic, low latency)

I'm reviewing all kinds of Android sound API and I'd like to know which one I should use. My goal is to get low latency audio or, at least, deterministic behavi

Filtering OCR Result [closed]

I'am working on OCR, which I have working, but now I'm stuck on how to filter the OCR Result to move each string into a set of text fields. F

Could not HEAD 'https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

I am trying to build my react-native project for android and getting the following error on Windows but its working on Mac. $ react-native run-android info Runn

Implementation OKHTTP doesn't work on Android project

i followed this tutorial: https://www.journaldev.com/13629/okhttp-android-example-tutorial But when i try to start the project give me this error: Execution fai

Custom Adapter Not showing data

I have developed an custom adapter which takes data from SQLite. Data is selecting and adapter also gets data. But its not showing in the list view. I don't get