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.
Tag: android-studio
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
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
Fragment Size overlaps TabLayout
I found some similar problems but none of them solved my problem. But basically it’s exactly the same as on the other threads, that my viewPager fragment overlaps the tabLayout: Here is my source code: GroupBookFragment fragment_groupBook.xml fragment_groupBook_krippe fragment_groupBook_krippe.xml adapter_groupBook The weird thing is, whenever I delete RelativeLayout from the child fragments and used the ConstraintLayout only, the content gets
How can i store uri.toString to my java class?
I want to store a uri to my donation.java class so that ill be able to fetch an image from firebase storage and display it on a cardview. However uri.toString is highlighted red and shows a “Cannot resolve constructor ‘donation(java.lang.String)'” donate.java donation.java I’ve tried storing the uri to a different class which was successful but I had to make another
How to Call function in custom view in android studio activity
MainActivity.java CustomView.java activity_main.xml when I going to run that code in my device it keep closing. Log cat shows error like this. I use physical device to implement this code. I’m beginner android developer also. I follow different kind of tutorials but I could not be able to solve it.I want to use this custom component same as normal widgets
How do I set Text size by emulator setting text size in android studio [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 months ago. Improve this question I wanna change text size not by android:textSize but change in setting emulator front size Answer Use the setTextSize function on the TextView reference.
Android : Convert CharSequence to Int in Java
I’m confused on how can I convert CharSequence to int , I just want to set visibility of textfield when the inputted amount of edt_nma_amount is >=100 What I tried to convert it but it returns me an error It crashes my app because the number is like string “” java Updated I have this data but it returns me