I have been trying to debug this for hours now and I am at a complete dead end. I am creating a program where you enter the current date and your current weight into a screen in Android Studio then click submit. That date gets sent to an SQLite database with two columns for data – “date” and “weight”. There
Tag: android
registerForActivityResult is not working in Flutter
I’m trying to launch context from android MainActivity class to flutter. code : and then calling the method launch code : and then I call this method from flutter by creating a channel between flutter and android and invoke it : when I press the sign in button it shows me this exception : Attempt to invoke virtual method ‘android.app.ActivityThread$ApplicationThread
ConcurrentModificationException thrown on for
problem of cant add element while iterating. i tried th emethod of creating another arraylist nd store element there and add them all in one time but it didnt work because you nedd the arraymist size to operate right. any help pls. Answer You’re doing the following: Obtain an iterator from some collection object. a for (var foo : collectionObject)
fragment binding (symbol “id” cannot be resolved)
I am trying to use the binding method in android studio to connect two fragments using onCreate and onViewCreated methods. so far i am getting id not resolved error. I have already connected the fragments on the xml graph. Bellow is the code of the settings java file. Answer Make sure to add this in build.gradle(app) Then give sync project
Retrieve count data from Firebase Java
I am trying to count the number of children in my DB table that meet a certain condition. If the isSeen column equals false then I want to count that, if it equals true I don’t want to count it. Currently, it’s not working but if I change the query from Query query = usersRef.orderByChild(“isSeen”).equalTo(true); to Query query = usersRef.orderByChild(“isSeen”);
How to make auto refreshing on recyclerview Android while getting data from firebase firestore
I added a swipe SwipeRefreshLayout but the data only show when I swipe down to refresh. If I don’t refresh the data didn’t show. I want an auto refresh on the background when an activity is created. This is my XML After getting data from the firebase I added it to the list and add that list into the adapter.
Get Value From Realtime Firebase Inside Child
Greeting everyone, im working a project right now and need help for firebase realtime database. My firebase Project As you guys can see in the above picture, inside student, I have matric number, and inside matric number have block and department. I have a barcode scanner which scan the value of department and return to get the matric number. Any
How to make a Retrofit call Synchronously without getting Main Thread Exception?
I’m facing an issue here, and I need some help. In this application, we make Retrofit calls in the UI thread – right in the Activity -, this means that we don’t have a good architecture (i know). The problem I’m facing, is that i need to make an Synchronous GET when the user click a button, and the GET
How to send JSONArray to PHP server using Volley?
I’m fairly inexperienced with Android programming and am having issues sending a JSONArray to my PHP server. I am using the following code to generate the JSONArray from my cursor: I believe I am misunderstanding how to properly send data via JsonARrayRequest. Here is the following code that I am using to send the data. Instead of sending the data,
How to store the data in the list without overwritten the data?
I am working on the json array loops to output the data so I can store them in the EmailAddressData list. I have got a problem with this line under the loops: It will overwritten the data each time I fetch it and store it. I dont know what other ways I could use to store the data. It will