How to fetch data from database for Android Development

I want to make an android app for customer to check the condition of their own electricity meter. So the procedure is that the electricity officer checks the customer’s electricity meter every month, then reports whether the electricity meter is damaged, jammed, or cannot be checked because it is hampered by a locked house fence, a vicious dog, etc. So, this application can be used by customers to check incoming reports regarding the status of their electricity meter by inputing the customer ID.
So this is the database, after we login, and search for the report data, we should choose one of the condition of the meters, in here i choose anjing galak which mean vicious dog.
1

After we choose one of the condition, the option view data will be activate.
2

Once we click it, we should choose the month, we should choose the current month, cause it’s automatically add one more month, these data always get updated in 25th of the month, like the 25th September data that officer reports it’s added for October data.
3

After that the customers data that are related to the condition which is vicious dog can be seen.
4

And this is the interface of my application form for inputing the customer id.
5

And it should change onto this if the customer id is there in the vicious dog data.
6

And ya in my code I still make the page manually, like the entire page from the input form till the status reveal, like this for every single condition
7 8

I confuse as how to do it, cz if the customer id not found in the vicious dog condition, it’s should search on other condition, until all the condition get searched, if it’s still not found then it’s should tell that’s the electric meter works well. And I want that the status reveal should be on one page, only the lower part is need to change, not the input form too, I use flutter. Could u plz kindly help me, it’s for my class assignment on monday. Like how should i do it? API, etc, I dont really understand how it’s work, my curriculum sucks. Plz kindly make the procedure and code is needed

Leave a Comment