Category "android"

Android Unit test fails with java.lang.IllegalArgumentException: INTERNET permission is required

I am trying to set up unit tests for my application. But I am facing an issue with Segment This is my test class: @RunWith(RobolectricTestRunner::class) @Config

Firestore Recyclerview item doesn't update when doing add, update, delete data

I have a problem when doing add, update, and delete with my firestore recyclerview. The problem is my recyclerview item updating automatically when doing add, u

Friendly way to redeem Custom Code from Google Play

I have create a Custom codes which allow user subscriptions with some free trials. From the document, in order to redeem the code, we need to initiate the purch

Error Running the Application on Android Mobile

I was working on a small flutter project suddenly I couldn't run the app to any android mobile. (on Web it's running Perfectly). It Shows this Error: Could

Execution failed for task ':vision-camera-code-scanner:checkDebugAndroidTestAarMetadata'

So I have been at this for a while now, I recently tried to add Detox tests to android in my react native projects. I followed the official Detox tutorial and t

Can I use react native to build a app with another frontend?

Sorry if there is already a similar question with answer and if there is, put the link here so I can reach it. I'm having a difficuty these days... I was told t

How to convert an activity to fragment in Android studio

Can someone tell me how i do that or someone can change this activity to fragment for me. i have very few experiance in cooding right now, so i can't do this my

Navigation component fragment label is not working for with attribute string

The fragment is in a module, So I made an attribute. The fragment is just showing that string attribute <androidx.constraintlayout.widget.ConstraintLayout xm

How to dynamically add/remove back button from a page that's already been constructed in XamarinForms.Android?

Our team is currently implementing some UI/UX improvements to standardize how a user saves/cancels any changes made while editing data in our app; and I've got

how to delete an object from list in flutter

i want to delete an object from list of inventory in which i just have description and url of the inventory and i want to delete object of inventory by descript

Execution failed for task ':camera:compileDebugJavaWithJavac'

I have created a new flutter project and added camera plugin. after adding that dependency I got many errors. I used futter version is 2.5.2 & minSdkVersion

Android API 31, how to get the SSID?

Manifest (permissions declared and granted) <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="a

Flutter Web send pdf file to a WhatsApp contact using URL Launcher

I have implemented a void function to launch WhatsApp in Flutter Web using URL Launcher. However my goal is to pass a pdf file to a WhatsApp contact and not the

Unable to run armeabi-v7a on Android Studio emulator

I need to be able to create a virtual device in Android Studio, which allows me to test my app on old Android systems such as Lollipop or Marshmallow, but it lo

Apache Commons Net FTP does not throw any exception on wrong credentials

I just managed to upload some files to an FTP server using Apache Commons Net FTP. When I use everything as it should be it works fine, I mean, the file uploadi

Expo / Android Simulator 'Error opening simulator'

I just installed Android Studio, created and ran a virtual device and have run expo, which successfully established the web server. However, when I click on 'Ru

Dimension name clash between two included libraries

I have an app that includes two libraries, both of which define a dimension with the same name (say text_size). At runtime I can see the style from one library

Export Android compiler Warning to text file

I want to write all the compiler warnings in a text file. Once we build it, we can see warnings in Build Output as seen in screenshot. Is the file already avail

How to test async function in Mockk Kotlin

I want to test this function. suspend fun fetchTwoDocs() = coroutineScope { val deferredOne = async { fetchDoc(1) } val deferred

When to use let/run/apply/with/also when an object is null?

I want to run a block of code depending if the variable is null or not, but I still don't know when to use let,run...etc. I want something like this: myVar?.xxx