I am trying to create a register activity to allow a user to register however I keep getting the error: Cannot resolve method ‘setTimestampsInSnapshotsEnabled’ in ‘Builder'” It’s only the section which has the setTimestampsInSnapshotsEnabled that is giving me the issue. Do I need an implementation? Here is my Java code: Answer If I look at the current documentation for FirebaseFirestoreSettings.Builder,
Tag: android
Android studio webview does not allow cors
I creating a android application and i want to load data from my server but if i load the data i get a “TypeError: Failed to fetch”. I have tried many ways. I also tried just to load google.com inside the webpage and it also doesn’t work. All my files: Main_actifity.xml MainActivity.java AndroidManifest.xml I was expecting to load data from
Why does the Recycleview work differently when I start it or when I go back to it from an other activity?
I try to create a Shopping/ToDoList application where the items are contained in SharedPreferences. When I start the application, and I choose what I want to execute, Shopping list part or ToDoList part, then the java code fetches the existing data from the SharedPreferences and give to the RecycleView to create and show a list. It seems works totally correct,
Can I add an image knowing its URI from the phone to the r.drawable folder in Android Studio to use it in a ListView?
I have got the URI of an image from an Input Image Activity. I have passed this URI to the Main Activity using .putExtra. Now I have the URI of the image in the Main Activity and I want to save the image somehow in r.drawable folder or to convert it to a picture which I can save to r.drawable.
How to set alert dialog box in android java? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 months ago. Improve this question How to set alert dialog box in android java? How to set alert dialog box in android java? Answer A
java.lang.NoSuchMethodError: No virtual method getAccelerationConfig()
I am working on one android application using tenserflow. when I run the application and debug the code it shows java.lang.NoSuchMethodError: No virtual method My code:- ClassifierActivity.java Classifier.java Answer Add this in your Manifest file where you have declared activity and exported. android:hardwareAccelerated=”true”
Installation did not succeed in Android version 12 – API 31 and above
I tried to install my application in an Android version 12. I added the android:exported for each activity, receiver and filters. This error occurs The merged manifist displays these errors This is the test AndroidManifest.XML file that causes the errors These are the test dependencies I’m using The problem occurs in the test package and its auto generated. How to
AndroidRuntime: FATAL EXCEPTION: main Caused by: java.lang.RuntimeException
https://github.com/ThalesCaruso/Lista-de-Mercado enter image description here enter image description here Watched a lot of youtube tutorials but didnt work Answer You’re using As per the Room Declaring Dependencies guide, you need to be using annotationProcessor for Java projects, not implementation:
(KOTLIN) Requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent
In every new message that comes to my account, the application restarts itself. Then it gives this error.I tried to find the solution but failed.I write the error code on the bottom line. i found this code but either i did not use it correctly or it does not work properly Answer If your app targets Android 12, you must
ImageView background change while .animate() [Java][Android Studio]
I’m trying to do some ‘nice’ animation during rotation of the image. I mean, I’m trying to change image bacground while the rotation reach 90f (is totally invisible), to continue rotation with other src. In this test case, I’m trying to rotate chest image and end the animation with coin image. rC1 is obviously an ImageView And well, it works,