Category "android"

How to Start Activity with Picture-in-Picture mode directly in Android

I have to open activity directly on picture-in-picture mode like WhatsApp playing video in chats. I tried but it launches activity normally and when I click but

AsyncTask as kotlin coroutine

Typical use for AsyncTask: I want to run a task in another thread and after that task is done, I want to perform some operation in my UI thread, namely hiding a

Flutter: How to draw a star

I am trying to custom my container shape to look like this: I tried to do it with customPaint but I don't know very well this widget so I need help. How can I

No implementation found for method getApplicationSupportDirectory on channel plugins.flutter.io/path_provider using java (not using kotlin)

I am using new flutter version 2.2.3 and firebase_messaging 10.0.5 plugin.. I have implemented the FCM services. I have got the FCM in background but when FCM i

Android: How to determine Network speed in android programmatically

How to show a slow internet connection to the user when the network is connected Note: Not a network type (2G,3G,4G, WIFI)

Where do widgets declare themselves?

I downloaded project "Contacts" from Google's git: https://android.googlesource.com/platform/packages/apps/Contacts/+/refs/heads/master to look at how widgets w

JsonObjectRequest sending empty parameters

I'm trying to send a request with json parameters to my node backend. This is the function in Android: public boolean checkUser(String user, String passw) {

UtteranceProgressListener does not return error message

I have a piece of code to synthesize speech. There is currently an error and I want to find out which. I have attached an UtteranceProgressListener to my TextT

how to load sfb model from url in sceneform?

I m not able to load .sfb model from URI.parse("url") in sceneform. My code is ModelRenderable.builder() .setSource(this, Uri.parse(string))

Recycler chat Pagination add new message at top

I am working on a chat app where I need to show reverse pagination and show the user's previous chat when the user scrolls up. I am first loading data from SQL

Can we edit the screen cast message in android? Current text - "exposing sensitive info during casting/recording"

Is it possible to edit the warning message that pops up when we start screen sharing in Android? The message is different for different OS devices. For OS 10 -

com.applandeo.materialcalendarview.CalendarView doesn't show up on XML design

I have been trying to get CalendarView for the application i have been working on.Earlier the calendarView was being displayed in XML design but now i do not ge

What if two app declare android app links with same domain

From the doc of app links, it's clear that it will directly go to my app if the user clicks a corresponding URL. But what if I declare two apps in one .well-kn

mutation attempt of frozen io.ktor.client.request.HttpRequestPipeline@151ac8

I'm using IO Ktor: ktor client core to implement multi platform network requests, but I encountered some problems When I use the class attribute created by http

Disable Screen Capture/ScreenShot in React Native App

I have came across few solutions specific for ios and Android to prevent screen-capturing and taking screenshots. But how do i disable screen-capturing in react

Share Button In Compose

How can I make a share button in compose, which will share a download link, I tried this but the result was different that I expected. Here is the code. Button

How to configure XML file so RecyclerView doesn't overlap the rest of the content?

What my layout file currently does: My layout file after building an app looks like on the picture and before building What I want it to do: I want this info ic

Appium - Xpath to get direct children not working on Android

For some reason, I am not able to get all direct children of an element on Android. Apparently, the XPath does not work correctly when searching subelements in

Samsung S21 camera2 API issue with near object

I am using Camera 2 API for capture image and it is working fine for other device than Samsung S 21 ultra 5G Android ver 11. I am getting blurry image when capt

Execution failed for task ':react-native-camera:compileDebugJavaWithJavac'

I am creating app using React-Native and testing it on Android device. After adding react-native-camera module, the following error occurs: org.gradle.api.task