Category "android"

Room migration - Is it safe to use Cursor in migration code (to get row ID)?

This is my migration change: Basically rename and then update some values based on the row id where isNext = 1. I suppose I need to use a Cursor as shown in thi

image get displayed on app but not on widget remoteViews

i'm displaying image stored on device storage to image view on app and in imageview on widget, it works fine on app but on widget it's not getting displayed and

This app is using a deprecated version of the Android embedding

I am getting the following error. This app is using a deprecated version of the Android embedding. To avoid unexpected runtime failures-, or future build failur

flutter_downloader In the release version, it crashes (on Android)

I use flutter_downloader (on Android) Everything is correct in debug and profile mode and works well, but in the release version, after hitting the download but

Parcel a List of objects from another Parcelable class in Kotlin

I'm working on a weather app for a class and I'm having some trouble with parcelable. I've looked at several other questions that are similar to this on StackO

Angled gradient background in Jetpack Compose

I am trying to draw a gradient background in Jetpack Compose, and I would like the gradient to have a fixed angle regardless of the shape of the object I'm draw

How to use clipboard service in jetpack compose

I want to copy a string to the user's mobile clipboard but I don't have any idea how I can use clipboard services in jetpack compose, If there is any alternativ

pointerInput of Modifier takes no actions

I need a Card() Composable with a normal press and a long press functionality for a custom Card Composable. The thing is Card() has its own value called onClick

Android: How do I programmatically DOWNLOAD an SSL certificate from a provided HTTPS URL?

try { final SSLSocket sslSocket = (SSLSocket)SSLSocketFactory.getDefault().createSocket(); Timber.e("RAWR: BEFORE CO

Socket connection not workin in flutter release apk

I am new to working with sockets, and I am working on this project where a connection between my android flutter app and a java server is needed, to do this I a

Disable Usb Ports in rooted Android device

I want to disable usb ports in my rooted android device, When I run below code it returns result is true but usb ports is still active, I want to disable usb po

How do I fix "Could not reach Cloud Firestore Backend" error?

I'm build a simple app and I keep getting this error: "W/Firestore: (23.0.1) [OnlineStateTracker]: Could not reach Cloud Firestore backend. Backend didn't resp

Trying to build react native app for Android on Mac M1 - Error: No emulators found as an output of `emulator -list-avds`

I have installed Android Studio on my mac M1 I have added a virtual device in Android Studio using Device Manager The app builds fine from inside Android Studio

Constraint Flow widget ignores max width attributes

I have multiple layouts that I want to display in a different location depending on screen size. If the screen is wide enough (tablet), I want the layouts to di

artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'

I have working an application without problem in Android Studio 3.2.1 After a long time of absence, I just downloaded Androoid Studio 2021.1 and when I try to r

Should the index passed to notifyItemChanged consider placeholder items?

PagingDataAdapter from Paging3 library internally manages two semantically different lists. adapter.snapshot() returns a ItemSnapshotList which includes placeho

App Links `legacy_failure` verification error on Android 12

I have setup assetlinks.json and AndroidManifest.xml so that the desired App Links are verified in all previous versions of Android. However, the verification n

How can I downgrade the Gradle in NativeScript?

In my NativeScript project, after the last Gradle update, I can't build a new Bundle file (for Android release). This error is about the compatibility of some p

on swipe how can i set text in text field after that edit text and insert again on that position where we swipe

on swipe how can I set text in the text field after that edit text and insert it again in that position. swipe in Dismissible and after swipe, I want my text on

Jetpack Compose TopAppBar with dynamic actions

@Composable fun TopAppBar( title: @Composable () -> Unit, modifier: Modifier = Modifier, navigationIcon: @Composable (() -> Unit)? = null,