Category "android"

Facebook and Google login doesn't work for Android AAB build uploaded to Firebase App Distribution

Since I started to upload AAB instead of APK on Firebase App Distribution, I've noticed Facebok and Google authentication were not working anymore. In my Fireba

a TCP client communicating with a server set on ESP8266-01

I'm setting up a TCP/IP communication between an android app and an ESP8266 module connected to Arduino uno. I'm using AT commands to set up the server as follo

How to send Body Data to GET Method Request android

like this, I want to send json body request to GET API tried this but not worked public static void getQuestionsListApi2(final String requestId, final Str

Admob interstitial ads are not closing

I'm showing interstitial ad in my app and ads are loading and displaying perfectly but the issue is that ads are not closing when I click cross button on back b

Why does GLES20.glCreateShader always returns 0?

I'm trying to make an OpenGL ES app in android using java and I have run in a major issue: GLES20.glCreateShader(type) (type beeing GLES20.GL_VERTEX_SHADER or G

Is 'constructor LocationRequest()' deprecated in google maps v2?

I stumbled upon this message recently, and I was pretty sure that this constructor wasn't deprecated in prior versions to 18.0.0, but I cannot find information

How do I best control activity flow?

I am tasked with building an app that does not have a fixed screen order. When started the app will contact a server an get a list of actions to perform. So one

Reference to an enclosing class method cannot be extracted on refactoring

When I want to do "Extract to widget", it raises an error : "reference to an enclosing class method cannot be extracted" I know there is some variables that mu

Mock Retrofit error okhttp3.ResponseBody$1 cannot be cast

I'm trying to test a snippet of my code that uses retrofit, so I've created an interface to "mock" the return, it works in parts, it can invoke the onresponse o

Is MSAL integration mandatory for MS Intune SDK integration in an Android app?

In MS Intune official guide for SDK integration for Android, they have supported case of no MSAL or ADAL integrated. https://docs.microsoft.com/en-us/mem/intune

JavaScript triggered redirect not working on site opened in facebook webview

Opening our ecommerce site from within the Facebook app on Android, opens the page itself in a Facebook web view. When performing the purchase, an external app

java.lang.NullPointerException: DataBindingUtil.setConte….layout.activity_chapter) must not be null

I have just build a project with android kotlin but when I run the app it got crash, and in the logcat I found this error java.lang.NullPointerException: DataB

How to get current weather from android device?

I am developing an app, in this app how can get current weather from its device. My questions: How to get current weather from android device? or How can get cu

How can i add a Toolbar in Jetpack Compose?

I need to add a Toolbar in my Android application with a List like below. I am using Jetpack Compose to create the UI. Below is the composable function i am usi

String xml file in Flutter

In flutter string text are directly set to the TextField widget like: new Text('Hello, How are you?') Is correct way ? or we can maintain all string in one

SharedPreference giving "Unable to establish connection on channel." when used inside flutter_background_service

I'm using flutter_background_service to start a service to fetch data from Cloud. It's working just fine in Android. But when I run on an iOS Simulator, I get t

Unable to send body parameter in Dart/ Flutter multipart request

I m trying to upload image using Multipart request using Dart/ Flutter. but parameter not getting on serverside. var request = http.MultipartRequest('POST',

Unable to send keyboard events to Bluetooth HID connected device

I am able to connect to the Bluetooth HID device successfully and able to control the paired device home button and navigation buttons. But unable to send Keybo

Why I get "Expected field or method name at error"

Expected field or method name at ... -keepclassmembers class * { *** @null(android.view.View); }

Multidex issue with Flutter

I'm getting the following error compiling with gradle using Flutter in Android Studio: Dex: Error converting bytecode to dex: Cause: com.android.dex.DexExcepti