Category "android"

Alert.alert not working in React native iOS, but perfectly fine in Android

Please check the code , import { Alert, } from 'react-native'; checkForSendingOtp = () => { let hash = 'aBcDeGgd'; Platform.OS === 'android'

How to avoid multiple triggers on EditText while user is typing?

I use the following code to perform search when user types in an EditText : EditText queryView = (EditText) findViewById(R.id.querybox); queryView.addTextChan

Full managing of fragments flow in Android

I have a special flow of fragments in my app, so I need to be able to switch to any fragment, while keeping fragments in memory whenever possible (so if it's ti

Change particular Edittext box locale to English if App locale is arabic

I am working on a application which is having Arabic and English language like user can switch to any language between these two,My problem comes when i change

My Request JSON keys (Data class propertis) are getting changed to "a", "b" autometically when I install my app from playstore

Issue Details: I recently developed and uploaded my Android app to the play store. When I install my app through Android-Studio (simply by running the project)

How to Change programmatically Edittext Cursor Color in android?

In android we can change the cursor color via: android:textCursorDrawable="@drawable/black_color_cursor". How can we do this dynamically? In my case I have

Kalman filtering algorithm for indoor positioning system [closed]

I am using a BLE (Bluetooth Low Energy) for indoor positioning system by its RSSI and trilateration algorithm. The problem is how to find an

Android Autofills For EditText is not Dark/Night Mode friendly

I have a email and password edit text. When Google Autofills popup, the text is not visible in dark mode/night mode. The rest of the app supports night mode wit

Flutter: Playing sound from UInt8List in Android and iOS

I have a UInt8List which contains sound byte data (can be mp3 or wav). I am trying to build a small sound player component. However I found no way to put the by

java.lang.RuntimeException: Unable to start activity ComponentInfo

I know this error appeared on forum million of times, but please help me find what I missed. I'm trying to do simple tab orientated application,I don't have muc

Changing view on Menu Item in Action Bar

I'm attempting to implement a refresh button in my app to allow a user to manually re-sync to a web server. The code works, but I'm having trouble figuring out

Flutter Release APK for playstore

I am trying to generate a build apk, but getting following error. this is compatible with flutter version 2.8.1 Getting following error while run flutter build

onDrawerClosed and onDrawerOpened not being called

I am playing with the DrawerListener , and unfortunately the official documentation is not quite detailed, not to say there aren't any examples given. All I w

Close Navigation Drawer on Back Button Pressed in Flutter

I have a material designed Navigation Drawer in my very first flutter app. This work's fine but I did't find any way to close the Navigation Drawer on Back Butt

prefer const with constant constructor

I have an error that shows this message "prefer const with constant constructor" when i deleting const on below class splashscreen theres not showing any error

Add padding on view programmatically

I am developing Android v2.2 app. I have a Fragment. In the onCreateView(...) callback of my fragment class, I inflate an layout to the fragment like below: @Ov

Get emoji flag by country code

There is a list of countries codes, I need to attach emoji flag to each one. Is there a way to extract unicode from it or find emoji for country code? This np

How can I take screen shots from running video in Android

I have developed an application in android which contains videos. Now I want to take screen shots from that running video. Is anybody having any idea regarding

Flutter dropdown alignment not proper

I want the dropdown like this with flutter Expected: with flutter dropdownformfield I'm able to do something like As you can see, When I click the dropdown bu

Does youtube player support to show cast button?

I'm writing a Android app to play youtube video by using Youtube API, I have a question how to show the "cast " button in Youtube player, if the API is availabl