Category "android"

Handling multiple experimental annotations throughout an app

I have an app that makes heavy use of experimental features for Jetpack Compose so I have to declare a bunch of annotations on the composables. Since these anno

Why `supportFragmentManager.backStackEntryCount` is empty after `add()` fragment to stack

In Android app (Kotlin) I have Activity with container what have fragment A in it. On user interaction, I am adding fragment B to container by: supportFragmentM

Property with return value in Java/Kotlin?

This is a pretty basic question, but I haven't been able to find any answer on SO yet. I'm just curious, is there a corresponding way in Java or Kotlin to write

Can we do twitter authentication without firebase in flutter app?

I just want to ask that can we do twitter authentication in flutter project without using firebase?

Why I need to explicitly add the fragment and activity dependencies in android?

I don't understand, while learning through a codelab in android they want me to add the following dependencies to the android build.gradle implementation "andro

Convert .apk file to .abb file without Android studio

Please how can I convert .apk to .aab without Android studio I created an Android app using AIDE and I wanted to upload to Google Play Store and then I discover

Xamarin Forms ToolbarItem text (only) is not displaying on Android (only)

I have a working Xamarin Forms app for Android and UWP. (I have not yet attempted iOS.) I have the following ToolbarItem: <ContentPage Title="Debug" ... >

SimpleExoPlayer is deprecated in 2.16. version of ExoPlayer. What to use now?

SimpleExoPlayer is deprecated in 2.16 version of ExoPlayer. What to use now?

Pass context with Hilt from ViewModel to data source

I'm trying to use Hilt to pass context along to my data source class, below: public class PostDataSource extends PageKeyedDataSource<Integer, Post> {

Cmake 3.10.2 not found in SDK, PATH or by cmake.dir prop

Getting the following error when building my project in Android Studio: [CXX1300] CMake '3.10.2' was not found in SDK, PATH, or by cmake.dir property. My Gradl

How to play YouTube Video in mp3 with YouTube Url or video Id in android studio

I want to play the youtube video in mp3 from the URL or the video Id. I'm finding the solutions from the last 5 days on the internet but there is not any answer

Unable to run Flutter project on Android after update

I've been trying to get my Flutter project to run after upgrading it to 2.10.4 and it's been a headache from the start. The project runs fine on a browser, but

How to get styling to refresh with new variable in react native

Using a global variable to store dark and light mode variable. In app I have place where variable is changed as user toggles if they want dark or light theme, b

drawing a speech bubble using canvas in jetcompose

i want to draw a speech bubble using canvas in jetcompose but i dont know how to draw an arrow at bottom end of the Rectangle this is my code: @Composable fun D

Could adb command disable/turn off a display screen of android phone while it is still working as normal?

I am wondering if adb command could disable/turn off a display screen of android phone while it is still working as normal. I see the scrcpy tool (scrcpy -S) ca

No installed build tools found. Install the Android build tools version 30.0

I have installed the build tools from the Android Studio SDK like that: Tools -> SDK Manager -> Android SDK -> Android 10,11,12 in the SDK Platforms, a

How to use java native method System.loadLibrary() in xamarin android?

I need to load two libraries before starting my activity. I can use this method through the native java language in android studio, here is my java code that is

File Selector (.txt)

I've been trying to get a code to list all the .txt files which are stored in a directory of a mobile phone. It's my first time with Android Studio, so it's har

Only 70% users get firebase notification Received

I am using Latest firebase "firebase-bom:29.0.3" SDK And I am sending notification by Topic and also tried by token array in previous code Android Code Uri def

How to fix gradle issue Val cannot be reassigned after gradle upgrade

I have upgraded my android gradle to use latest 7.1.1 distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-all.zip after updated libraries t