Category "android"

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

stay awake over wifi debuging

I use WiFi ADB Active or ADB Wireless application to debug my build app in eclipse over Wifi instead USB debuging. how I can keep turn on my device during

Modules that need to be instantiated by Hilt must have a visible, empty constructor

@Module @InstallIn(SingletonComponent::class) class WheelModule constructor(val size:Int) { @Provides fun provideWheel():Wheel = Wheel(size) } Module

How to change the status bar color in Android?

First of all it's not a duplicate as in How to change the background color of android status bar How do I change the status bar color which should be same as i

Making screenshot of Google Map bigger than my device screen

I'm developing an Android application which is using Google Maps API v2 and is sharing the map screen through socket connection with another Android device. It

Adjust androidx.preference dialogs to follow Material You

I have two apps containing a preference section, and i'm using the preference library, the latest version available at the time of writing: implementation "

missing permissions required by BluetoothAdapter.isEnabled.BLUETOOTH

I add bluetooth to my app but am running into the following problem. When I do the code: BluetoothAdapter bluetoothAdapter=BluetoothAdapter.getDefaultAdapter()

Adjust androidx.preference dialogs to follow Material You

I have two apps containing a preference section, and i'm using the preference library, the latest version available at the time of writing: implementation "