Category "android"

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

data is not emitted from android client to server using socket.io library

I am creating a chat app using socket.io library. The github link to library is com.github.nkzawa:socket.io-client:0.3.0 . I wanted to add the feature of adding

How can I clear notification?

I have to hide a notification when a timer is cancelling. I instantiate a notification manager and use myNotificationManager.cancelAll(); but it doesn't work.

How can I clear notification?

I have to hide a notification when a timer is cancelling. I instantiate a notification manager and use myNotificationManager.cancelAll(); but it doesn't work.

SpeechRecognizer directly gives onError 5 and then 7. Without waiting a couple of seconds for input

I have the following code to start the SpeechRecognizer: fun startVoiceRecognitionActivityNoUI(value: VOICE_COMMANDS) { Log.i(TAG, "SPEECH Results startV

Connection has been shutdown: javax.net.ssl.SSLException: Tag mismatch

Has anyone encountered this error before? I'm new in flutter, is there anything wrong while running the sample file of flutter that I'm missing? The stack trac

How to disable OneSignal on android?

I want to use OneSignal on my app to send notifications to my users, and it is well documented and good, you should just act like this: https://documentation.o

Error in Android Tutorial with sendMessage (view; View) - App Basics, starts another activity

When I try to change the property of the Button (onClick) no the drop downlist is empty and I receive errors when adding the sendMessage (view; View) Method. Se

pb while applying incremental android OTA on pixel

I am building my own AOSP that include full and incremental OTA updates. My device is a google pixel running a 7.1.1. I can perfectly build android images and g