How to set the favorite star icon to ON when clicked and OFF when again clicked in android

[tag:android] My Activity that has list of quotes is as follow. package bank.quotes.famous; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import...

Menu in Fragments not showing

I got pretty helpful hints to my last questions, I hope it won't be different this time :) First, let me explain the situation. I have an activity with 2 fragments. For each fragment I have a xml...

Android toolbar menu is not showing

I'm trying to add a menu to the ToolBar. onCreateOptionsMenu method of my Activity is called, but no menu appears. This is dashboard.xml (from menu folder) <?xml version="1.0"...

java.lang.IllegalArgumentException: Target must not be null

When I am passing image url to Picasso then it shows me error "Target must not be null". When I fetch image from url using Picasso then it shows me error. Even my id assigned to image is correct....

Changing TabLayout icons on left, top, right or bottom in com.android.support:design:23.1.0

I'm pretty new to android development. So bear with me. I've been trying to align the icon and text in same line in com.android.support:design:23.1.0 for a day. Apparently in...

Error inflating class ImageButton

I have an app which has fragment and image button on that. The problem is it's working on and above 5.0 but not below 5.0. The min sdk version is 17. Not getting what's wrong here. I am getting 2...

Android Studio only gives me SHA1, I need SHA256

I want to use assetlinks.json for appindexing. I am supposed to use a SHA256 fingerprint, but when I print out the signingReport in Android Studio, I only have SHA1. Can I use SHA1? If not, how...

imageview works only in Android Studio preview, but not on device or emulator

I've a problem with an image in an activity. For some reason the ImageView is visible in the Android Studio preview, but not when I build it on device or emulator. In any other activity it's...

alpine package py-pip missing

Im trying to install python pip in my alpine using Docker compose file but get the following error. ERROR: unsatisfiable constraints: py-pip (missing): required by: world[py-pip] ERROR:...

Generate Signed APK: Errors while building APK. You can find the errors in the 'Messages' view

Error:Failed to capture snapshot of output files for task 'packageRelease' property 'outputDirectory' during up-to-date check. Failed to create MD5 hash for file 'C:\Users\oMaR...

Multiple Versions of Android App For Testing

I have an Android app that is currently on an Internal Test Track (Version 1). I am trying to upload a new version (Version 2), but I want my current users to still test Version 1. The console...

How to build signed apk from Android Studio for Flutter

Is there a way to build an apk for flutter in Android Studio? I have seen this guideline: https://flutter.dev/docs/deployment/android But here flutter console is used to build apk.

Weights in Jetpack compose

Is it possible to do weights in Jetpack Compose? For example, I'd like to set it up in such a way that one item is weighted as 1/3 of a layout, and the other takes up the remaining 2/3. In the...

ImageView with only one rounded corner

I'm trying to make one rounded corner of ImageView like in the picture below but with bottom right corner. Tried using background shape but it's not working at all. All images loaded by Glide....

React native Task :app:bundleReleaseJsAndAssets FAILED

I try to generate apk with cmd "gradlew assembleRelease --stacktrace" but it fails & I always get the same error message : > Task :app:bundleReleaseJsAndAssets The filename, directory name, or...

Failed to install gcc on Python-3.7-alpine docker container

I am trying to set up a Python docker container, when I run the command "docker-compose up" to build the Dockerfile it throws me this error message below. The docker file was successfully built...

can’t build the app for android after ejecting to native project

After ejecting my expo project to native one I can’t export APK file what I wonder is , why considering this task : ?? Task :app:bundleReleaseExpoUpdatesAssets FAILED I ejected expo , it fails...

Firebase Firestore is failing over wifi on physical device with error: Could not reach Cloud Firestore backend

When trying to get a document from Firestore, if the device is connected through Wifi the connection fails with the following error message: W/Firestore( 4903): (21.4.3) [OnlineStateTracker]:...

Android SDK Tools: OpenCV requires Android SDK Tools revision 14 or newer

I'm trying to create a simple photo capture app using kivy, opencv. When I tried to create an .apk file using buildozer, and put opencv in requirements at .spec file then I faced this error --...

View binding with include layout not working

I want to use view binding to bind the view in include layout. I had given the included layout with an id 'topBar' but still failed to access the views inside of it. And I try to use Android...

Task :app:uploadCrashlyticsMappingFileRelease FAILED Expected file collection to contain exactly one file, however, it contains no files

I have implemented Firebase crashlytics as suggested. I have put this in my app level release build variant: firebaseCrashlytics { mappingFileUploadEnabled true } but when I start to...

ViewPager2 doesn't show correct Fragment on slow devices or when debugging

I'm using ViewPager2 with TabLayout and FragmentStateAdapter to display Fragments in tabs. I found out that when I run it on slower devices (ie. Nexus 5X) or when I put a breakpoint to...

Flutter: Unable to Firebase.initializeApp() Firebase authentication services

Created a new class to manage sign-in methods in one place, a Dart class with no flutter Widget. It gives errors about FIREBASE INITIALIZATION after following...

Analyze app window doesn't show up in Android studio

I'm following this tutorial. https://developer.android.com/topic/performance/reduce-apk-size Use the analyzer in Android Studio You can download the Android Size Analyzer plugin using the plugin...

Python: how to open a file using system app on Android

The goal is top open a file in Android's default app For example, an image in Gallery The file path is known. I've searched a lot but could not find any answer. (I am making a kivy app and then...

Unknown type name 'RazorpayCheckout'; did you mean 'RNRazorpayCheckout'?

I am using react-native integrating Razorpay Payment Gateway. Version used : "react-native-razorpay": "^2.2.4" Perfectly works with Android, APK built and tested. The same when I start building...

Testing out MANAGE_EXTERNAL_STORAGE permission

I want to support MANAGE_EXTERNAL_STORAGE permission for my file manager app. I have followed the following steps to do that. I have added the following line into the manifest <uses-permission...

Could not find com.android.tools.build:gradle:7.0.3

I have a project and I have the apk,but I have changed a value in calculate.java file and I want to rebuild the project.But the following error is appeared.What should I do.I am not a android...

Docker Alpine: unable to select packages: python (no such package) while building image for ARM

I have Node.js app that uses SQLite database. To use it on ARM architecture, I need to build sqlite3 binaries so I need some packages while building Docker image. Here is my Dockerfile: FROM...

uploaded an APK which has an activity,activity alias,service or broadcast receiver with intentfilter, but without 'android : exported' property set

I'm having an issue when i'm uploading app bundle to the play console that You uploaded an APK or Android App Bundle which has an activity, activity alias, service or broadcast receiver with...