streamdata-android / stockmarket sample
This application shows how to use the streamdata.io proxy in a sample Android app.
Streamdata.io allows to get data pushed from various sources. This sample application shows simulated market data values pushed by Streamdata.io proxy using Server-sent events.
To run the sample, you can clone this GitHub repository, and then open the project with Android Studio.
Add the Streamdata.io authentication token
Before running the project on a phone or emulator, you have to paste a token to be authenticated by the proxy.
Modify StockMarketList.java on line 44 :
private final String streamdataioAppToken = "YOUR_TOKEN_HERE";
To get a token, please sign up for free to the streamdata.io portal and follow the guidelines. You will find your token in the 'security' section.
The application dependencies are available on GitHub
- JSON library : https://github.com/FasterXML/jackson-databind
- JSON Patch : https://github.com/fge/json-patch
- Server-Sent-Event : https://github.com/tylerjroach/eventsource-android/
If you have any questions or feedback, feel free to contact us at email@example.com