Category "android"

Passing an argument between two fragments each of them in a different Navigation Graph

Using Android Navigation Component. I have two Navigation Graphs (each of them with their own flow), lets say navigation graphs A and B. I navigate successfully

I am new to flutter and dart so i have being trying to use my phone to test the demo flutter file in android studio but i keep getting this error

FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:compileDebugKotlin'. Could not resolve all files for configuration ':

Ignore firebase related exceptions in Roboelectric unit test

My Roboelectric unit tests are giving this exception when I try to initialise Firebase in the Application class. java.lang.IllegalStateException: Default Fireb

NameNotFoundException when calling getPackageInfo on Android 11

After setting targetSdkVersion to 30 (Android 11) I'm getting android.content.pm.PackageManager$NameNotFoundException when doing packageManager.getPackageInfo(p

URL Waze (GPS), directing from browser to app

I have an Waze URL with the adresses settled in a button in an Web Page, in which souldnt calculate the route, only mark the pin at the map. This link should re

WearOS support for PWA

I'm digging over internet on how to make a PWA app made with react.js run over WearOS, but I do not find any article. Also, the WearOS website is empty of infor

Shortcuts not working after updating to Android studio 4, in Mac?

After updating to Android Studio 4 from AS 3.5, as a Mac user I found out none of the default shortcuts work properly, i.e cmd+shift+F does not open search ever

Jetpack compose can't preview after updating to 1.0.0-rc01

this happened to me only when I updated to 1.0.0-rc01. it says: The following classes could not be found: - androidx.compose.ui.tooling.preview.ComposeVie

Manually clearing an Android ViewModel?

Edit: This question is a bit out of date now that Google has given us the ability to scope ViewModel to navigation graphs. The better approach (rather than tryi

Unable to add Google App platform in Facebook App

Hi I am trying to add Android app platform in my Facebook app in developers.facebook.com but when i add package id in Package Names field then it given an error

How to programmatically connect to Wifi with no internet Android (Xamarin)

My app needs to use a wifi network (without internet, thus android avoids it by default). And I want it to be simple to use (like Grandma doesn't have to be man

Turkish Identity Number Verification

How can I make sure that the given text is Turkish Identity Number? I have seen js version here and phthon version here Also, posted a question couple of days

ImageButton color getting changed to default on reloading the activity/app

On button (ImageButton) click I'm changing its background color to something else but as soon as I reload the app or open another activity and come back, the bu

Android Studio Device Manager shows my physical device offline the next time when I try to run my app

I pair my phone using the Pair using wifi option in Android Studio and it gets paired and even the app runs on my phone. But the next day when I come the device

Android Studio compose preview not working

I can't preview any composables with Android Studio Arctic Fox Beta 4. Even the default one that is generated with an empty compose project. Running the default

Build android error at stage app:mergeDebugResources, ParseError AttributeNSNotUnique

I've been trying to build my Android Application on Android Studio 4.2 with Gradle 4.2.1, but I am faced with the following error of which I was only able to fi

Should I turn my Activities into Fragments?

I went to the YouTube Academy for Kotlin Android Development and created a semi complex app with Google FireBase, I have hit a roadblock in some code using an E

Not receiving notification when it is sent while the application is killed/closed

My desired outcome is to be able to display a notification when one is received regardless of whether the app is in foreground/background/kill. I am currently a

Classifier does not have a companion object, and thus must be initialized here

I have an Activity where an interface is declared and I have a ViewModel class which has overridden interface and want to invoke the method of interface from Ac

API 'BaseVariant.getApplicationIdTextResource' is obsolete and has been replaced with 'VariantProperties.applicationId'

When building gradle I'm getting this message: API 'BaseVariant.getApplicationIdTextResource' is obsolete and has been replaced with 'VariantProperties.app