Category "android"

Flutter overide method back()

How can I make the back button work in android the same way as home. If I click on back, the application is killed, but I need the back button to work the same

Discard a push notification when received on device

I'm using OneSignal to send push notifications to iOS and Android devices. Is it possible to discard a push notification when it's received on a iOS and Android

Redirect a Fragment to another Fragment

I'm studying a lot about Kotlin, and I have a single project to make. So, I have some Fragments and one Activity. All actions from left menu are working, ok. Bu

How can I do work with a coroutine in a foreground service? Kotlin Android

I am trying to build an app that will run in a foreground service and give feedback to the user only through audio. I have followed this example: https://better

How to emulate clicking on coordinates on android in the editor on android python

On my device there is a safe from which I forgot the password and I want to sort through all the passwords through auto-clicking on python. The problem is that

How to use KeyGenerator with PasswordProtection

Let me start off by saying that I am a noob in the whole encryption thing. I am trying to generate a key and store it in the Android KeyStore protected with a p

The plugin `path_provider_android` doesn't have a main class defined

Since i wasn't using the plugin path_provider anymore i tried to delet it, then it gave me a warning, so i deleted a folder caled "data" know i'm trying to do f

Switching back to previous task in android

I have three activities A, B, and C. As expected when C is changed to pip (picture in picture) mode, it is separated out as a new task. When back pressed is pre

Status code 500 occurs in App Actions Test Tool (Android Studio)

I'm getting a 500 error when deleting / creating a Preview using the App Actions Test Tool, which worked fine until a few days ago. I've uploaded an App bundle

warning: [deprecation] <TResult>call(Executor,Callable<TResult>) in Tasks has been deprecated

I'm getting this error while I was running my app (though my app is running fine) : C:\Users\dassa\Downloads\flutter_windows_2.2.3-stable\flutter\.pub-cache\hos

How test a ViewModel function that launch a viewModelScope coroutine? Android Kotlin

I´m trying to figure out the simplest way to test this kind on function members, I´ve seen more complex cases like Coroutines - unit testing viewMod

How to create a list from scanned BLE results

as invers to the question asked here How to convert Flow<List<Object>> to Flow<Object> I want to convert my Flow<Object> to Flow<List

FCM push notification is not working in release branch when minify set to true

I have earlier tested many times FCM was working just fine, but now only in the release environment I am not able to get the push notification. I am using the d

Android Studio button crashing

Good day, ma'am/sir. I would like to ask how to fix this crash thing in Android Studio on my Bluestacks emulator; the problem is the button, every time I click

How to prevent back button from dismissing the keyboard in flutter?

I want to set the keyboard to be always opened in the chat page and should not be dismissable by the back button. The WillPopScope() widget is only preventing t

SavedStateHandle kotlin always receiving null

I need a Factory to support Viewmodel WITH ARGUMENTS. I tried to implement the class which is commended "AbstractSavedStateViewModelFactory". I applied the trou

Monitor reading access to contacts ANDROID without rooting of device

There is a way to monitor reading access to contacts? I tried this experiment: I developed an application that reads contacts subsequentially i ran it. After th

In Flutter on Android: how to save non-image file so the user can instantly see it in other apps?

How can I save a file (txt/pdf/doc etc.) in my Flutter app on Android device in such a way that it will be accessible or "visible to the user" from any other ap

showContextMenu shows drop down menu instead of floating menu

I want to show context menu on single click on a View, I'm using: view.setOnClickListener { it.setOnCreateContextMenuListener { menu, view, contextM

How to use Flutter MethodChannel from FirebaseMessaging.onBackgroundMessage?

I'm using firebase_messaging onBackgroundMessage handler for listening push messages and it works as expected. Now I want to call platform method from this hand