I have a listview that I am trying to populate by changing the text of the row xml to the file paths in the folder (so I can later perform operations on the files. I am getting a crash upon starting the activity. My code: FileView.java activity_file_view.xml row.xml I am getting this error: Appears to be a nu…
Tag: android
Select next value firebase android
I’d like to get first register and then the second one when user click in next button, and so on… I have this: and this: My firebase is: So when user open the activity I’d like to show the first value and when he clicks in button I’d like to show the second and so on. Any ideas how to
Jitpack Task ‘install’ is ambiguous in root project Android Library
I require your help to be able to upload a project, to give them context, I am adding dependencies to my library: FAILURE: Build failed with an exception. What went wrong: Task ‘install’ is ambiguous in root project ‘project’. Candidates are: ‘installDebug’, ‘installD…
How to use PixelCopy API in android java to get bitmap from View
Currently I am using view.getDrawingCache() now get drawing cache is deprecated view.getDrawingCache() is deprecated in Android API 28 Solution in java code is have getting error Callback Can not resolve Callback Activity Window Handler which is supper class of callback ? Answer Check this article CallBack in…
.OnClickListener versus .OnChildClickListener
I know that (View.)OnClickListener is called whenever a view has been clicked on. What I don’t understand properly is, what OnChildClickListener does. I also wanted to know the difference between them. P.S. I have read Android’s documentation on OnChildClickListener but I am not able to grasp the …
Exoplayer multiple instances when loading new fragments
I am creating a radio streaming app for a friend. I decided go down the Exo player route. Everything works fine, apart from if I load a new fragment or turn the screen round. Then I get a new instance of Exo player that starts behind the original. It can get really messy – how can I avoid this? Here
How to get the data from x document and upload it to a new document called ‘name’ and then delete the old one in java
How to get the data from x document and upload it to a new document called ‘name’ and then delete the old one in java I’ve got this code snippet from a Bjorn Reemer but I am unable to get it working in android java Answer you should use a transaction
Action button on Notification if not clicked on certain time will do something else
I have an app that if something happens it will pop up a Notification with an action button. if it pressed it will the app running but if not for a certain amount of time it will run another code. I’m …
Filtered Recyclerview on spinner with selected class of the student?
I want get items on RecyclerView based on the student class selected in the spinner. The student has rollno,name, class to be displayed in the RecyclerView. For instance, I want students in class 8th. I am using firebase Firestore. Right now I have recyclerviw which fetches all the documents(students). Update…
snapshot.getValue(User.class) is returning null
I was working on this User information project. I have created login registration for users. The project supposed to show information about logged-in users. When users log in to their profile, it is returning a null reference. Answer The key of the user node that is showing in your JSON (-MRF…J0KL) was …