Category "android"

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

Android Studio can't connect to JFrog Artifactory

We've been successfully running a JFrog Artifactory OSS instance for a few years to host our Android libraries. Recently the web server certificate expired so w

Failure [INSTALL_FAILED_USER_RESTRICTED: Invalid apk] in android

I am using Android Studio 3.0.1. When i am trying to run app INSTALL_FAILED_USER_RESTRICTED: Invalid apk error occurs. I also disable Instant Run.

The page property cannot be read when multiple PageViews are attached to the same PageController.Failed assertion: line 184 pos 7:

Iam trying to restart the quiz app but when iam press the restart i have this error message (The page property cannot be read when multiple PageViews are attach