[SOLVED]  LAB 4 - Football competitions (with areas) - WebSocket based chat

40.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Week-4-s4qsy8.zip (428.6 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (1 vote)

1.    Football competitions (with areas)

Modify the previous football tournament app to first show all available areas of the competitions (you can get them from this api: http://api.football-data.org/v2/areas)

When user clicks one of the areas app will open other activity which will show a list of available competitions from that selected area. This API was already used in the previous assignment: http://api.football-data.org/v2/competitions?areas=2072

You should have two activities (one for areas and one for competitions) in your application.

Please follow good object oriented principles in your app design (architecture).

2.    WebSocket based chat

Create a chat application with web socket.

There are several libraries which you could use, I chose this one: https://github.com/TooTallNate/Java-WebSocket

Client example (please note that this example has been made for standard (desktop) java. You need to modify it a bit to make it work on Android.

https://github.com/TooTallNate/Java-WebSocket/ wiki#client-example

The chat server waits for your messages in this address:

ws://obscure-waters-98157.herokuapp.com

  • Week-4-s4qsy8.zip