How to get data from the cloud or localhost on Android [closed]

1

I am working on an Android application, for which I must manipulate a Vector. The insertion of objects into this Vector is done manually, each time the application is executed and I keep the data in the internal memory state.

What I would like to do is be able to obtain the data I use to instantiate Vector objects, from the cloud or use my own PC as localhost.

As if it were a WebService, I would like to receive a JSON and be able to process it in my application

Could you give me some guidance on what tools I have to use or what I can apply for this?

    
asked by LauSikh 30.12.2016 в 18:58
source

1 answer

1

I understand that what you want is to obtain remote data. You will need a data source, access permissions to the connection, etc. Depending on the data you require, it will be one or the other. As a remote data source, there are public apis, each has its own way of working and manages specific data, the data is usually retrieved by GET requests such as those usually made by a web browser when typing a web address or clicking a link (to send them, change them, etc, you should study at least how the GET, POST, PUT, DELETE requests work). As I suppose you need specific data, you require a remote service of your own, which will serve the JSON with the data you want. You will have to buy it or mount it (if you know of server programming, it is basically a website, but no views are created, what you generate are JSON, which you can also see if you access with a web browser, if you can not program a server there are services of payment like Firebase (free tests), that saves you the programming of the server side).

Greetings.

    
answered by 30.12.2016 в 19:48