** Duplicate class com.google.android.gms.internal.vision.zzv found in modules jetified-play-services-vision-20.0.0-runtime.jar (com.google.android.gms:play-services-vision:20.0.0) and jetified-play-services-vision-common-19.1.0-runtime.jar (com.google.android.gms:play-se** Answer This is 100% a conflict betw…
Tag: android
I am trying to run the app on my Android 10 device and the following error is shown – minSdk(API 30) > deviceSdk(API 29)
I am trying to run the app on my Android 10 device from the Android Studio and the following error is shown – I think I have to change the minSdk value, but in which file and how to do it? Answer The device you are using has lesser API than minimum required API set by you. So, either you
Why does my Timer crashes my android activity when I stop it?
I’m trying to make a toggle button that can stop and replay a Timer, it worked just fine until I added a new method called “Set_BPM”. It starts and it stops correctly, it crashes when I try to start it again after I stopped it. This is the class where I’m using the Timer: And this is h…
How to pause the current loop without pausing current running thread in Android / Java?
In my android application, In my fragment, I have one while loop like Here new Mp4Composer is a Thread… This task is executed for each iteration of the loop..without completing the previous task (on task still in processing state)… the loop jumped to the next iteration.so the existing task doesn&#…
recyclerview uploads items multiple time on refresh
I have implemented a recyclerview, where I want to show the groups that have been created in the app. Right now I am refreshing the recyclerview using the swipeRefreshLayout, but everytime I refresh the recyclerview, it prints out the same group multiple times according to how many times I refresh it. Can any…
MenuItem doesn’t appear in toolbar
I’m facing a problem. I can’t make a toolbar to show me a menu. I know that this question was asked here previously here, and I went through all possible solutions, but none of them gave me desired result. So I’m using 1 activity and few fragments and I want to show different menu items in a…
Firebase authentication works only on debug version
I have an app on google play: https://play.google.com/store/apps/details?id=com.conta.ftof and I have a big problem. I can’t get firebase authentication with phone number to work on the signed version. in fact, it works only with the debug version (when in the release version I insert the number and cli…
Unsafe implementation of the interface X509TrustManager – Google Play
When I try to upload an application to google play, I get a message. “Unsafe implementation of the interface x509trustmanager”. In a message from Google Play it says: To avoid problems when validating the SSL certificate, change the code of the checkServerTrusted method in the X509TrustManager int…
How to show a RecyclerView (with data fetched from API) as a list item in another RecyclerView in android?
Want to achieve: a chatbot that returns weather forecast as a RecyclerView inside that chat item (which is in the outer RecyclerView) when the user inputs the word ‘weather’. I want the weather info to be the actual chat item. I have MessageAdapter and WeatherAdapter which deal with messages and w…
Merge encrypted pdf file programmatically exception
I have been using the following code to merge encrypted pdf files programmatically. I started getting this error recently upon trying to create the pdfReader at this line of code: com.itextpdf.text.exceptions.InvalidPdfException: Unknown encryption type R = 6 at com.itextpdf.text.pdf.PdfReader.readPdf(PdfRead…