How to display a result list in an Activity?

Asked

Viewed 49 times

0

I have a very limited knowledge in programming and am starting Android now. I started developing an Android project for physical therapy.

In this project, physical therapists can register and log in to edit, display and register patient data, among other things. I’m using PHP, Mysql and Android to do this whole process. For now, I was able to communicate between Android and PHP to exchange Json objects.

My problem is: when the physiotherapist logs in, the patients who were registered by him should be shown ON ANOTHER SCREEN. The problem is that Android is directly linked to XML and I do not know how to add these patients proportionally to what is in the database. Can be 1,2,3,30,40, etc.

Could someone give me a light to know how I can display this data and if I can create buttons to edit and delete these patients (linked to their name)? I’ve done a lot of research, but the most I could find was static data display, no interaction.

  • 1

    That question doesn’t have a trivial answer. You should take a look at Recyclerview, Custom Adapter, Contentprovider, etc., as it is not a short answer. I suggest you take a look at this course: https://br.udacity.com/course/android-basics-data-storage--ud845/

  • Thank you, I got at least one light because I was lost.

1 answer

1

  • Thank you, at least I managed to find a way because I was lost.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.