I'm currently working on developing an android application that needs to connect to a Raspberry Pi over a local WiFi connection and read some data from a file stored on the RPi. I'm not really sure where to begin on this and what resources I can use. I already have the layout of the application set up and just need to write the code.
So my question is how should I write the android application to read a file from a Raspberry Pi that is connected to a local WiFi network? The file on the Pi could be either a JSON file or a plain text file.