Category "android"

Gradle: compileOnly and runtimeOnly

I'd read the documentation but I'm not able to understand how to create a working example to understand better their differences. And ofc I've created a play

Unable to import any library in Android Studio after updating it to Chipmunk

I have recently updated my Android Studio to Chipmunk and I am unable to import any library in it. Here is my build.gradle project level file. App level build

Error uploading Multipart to MongoDB using Ktor

I'm trying to upload a JPEG to MongoDB using Ktor and Kotlin but keep getting an error: java.io.FileNotFoundException: /document/image:32: open failed: ENOENT (

Dalvik crash on Oneplus on Android 12

I've got an app in the play store, and have just started seeing the following crash on crashlytics as we're releasing a new version: Fatal Exception: java.lang.

Image asset not overwriting existing icons, but disappearing

In Android Studio when we create a new image asset, it says the icons will overwrite what is already there, but when we hit finish, the icons disappear on the c

The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first react native

I know this was asked before, but none of the solutions seem to help. I'm using first time Facebook SDK in my application. MainActivity.java: package com.spade;

How to use actions or do scroll in app in Java?

TouchAction is deprecated. Any pointers for new usage to do vertical Scroll? Below code used. But not working as TouchAction is deprecated. Dimension dimension

Unable to set BottomSheetDialog initial height

I'm trying to set a height peek from which the dialog must start, then the user if dragged should be able to expand it, the issue is that in any case the bottom

increase Android BLE bonding / pairing dialog timeout

I have an android app that connects to a BLE device and pairs with it using BleDevice.createBond(). the issue is that the dialog could disappear before the user

Android LiveData advantage than other observable libraries

In 2022, What scenario can imagine LiveData is better than other observable libraries such as StateFlow, SharedFlow, Coroutine Channel and etc.

Error when running app on virtual machine in Android Studio

I am fairly new to android studio so please excuse my incompetence. Two days ago I deleted android studio and re-downloaded it and now the emulator refuses to w

unrecognized Attribute name MODULE (class com.sun.tools.javac.util.SharedNameTable$NameImpl)

I received this build error having updated my native android project to Android S (Pre release of android 12). Googling for the error threw up no valuable hits.

Android facebook share opens web page instead of native app

I am using Facebook share SDK and I read the docs which says that if the native Facebook app is installed then it will be used as a share dialog otherwise a web

How can i show previous 30 days in my list calendar?

I have a calendar, that works correct but shows only current day and future. How can i set previous days? I'd like to highliht a current day but also give an op

Error inflating class com.google.android.material.bottomnavigation.BottomNavigationView in Kotlin

Dear team I am trying to use com.google.android.material.bottomnavigation.BottomNavigationView on my Kotlin application. While running the application, My appli

Unable to start API 29 emulator (Android 10)

As the title says, I have tried to create an Android 10 emulator, when trying to start the emulator nothing happens, only the phone appears on the screen but th

Flutter : Issue with the dependencies in the project

I am using a prebuilt project and I am getting below issue with the three dependencies mentioned Error: Cannot run with sound null safety, because the followin

constructor in class cannot be applied to given types android studio

i am making a recipe app and i m getting this error : constructor HomeItem in class HomeItem cannot be applied to given types; recipe.add(new HomeItem("

How to set android layout height to x% of its parent height?

I would like to create this simple layout: I wrote this: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.androi

Error in reading the Firebase: from firebase value to child

I have created an event handler for the onClick button. When I click on the button, I want to transfer a pre-recorded number in the database to the price sectio