Test sites and responses
Note: Room 17 desktops can't access sites.tjhsst.edu sites.
Use weather api like this one at api.open-meteo.com:
or this one for quote of the day:
or this example from the tutorial above:
https://mw-demo.sites.tjhsst.edu/ => hello world
https://mw-demo.sites.tjhsst.edu/data => 4 by 4 table in JSON form
[{"id":0,"category":"cat1","increment":0,"decrement":0},{"id":1,"category":"cat2","increment":24,"decrement":0},{"id":2,"category":"cat3","increment":2,"decrement":0},{"id":4,"category":"cat4","increment":0,"decrement":0}]
Notes to format response into array
Study this code and modify for the api you choose to use
I recommend starting with a StringRequest instead of JsonObjectRequest
https://mw-demo.sites.tjhsst.edu/data/add?id=2 =>
increments row 3 (vary the id number to increment other rows)
returns category and increment value of the row increased
{"category":"cat3","increment":3}
Quote of the day:
request a new quote on each swipe
Like feature:
verify quote is new to custom list of quotes
add quote to current list of quotes
store compiled list to SharedPreferences
You will need to
Make at least one request
Process the data returned
Display formatted data
Build the .apk file
Rename the .apk file
PeriodLabNumberLastFirstCustomName.apk
P8L11aTraDanRequests.apk
Submit assignment
.java file
.apk file
Video demonstrating request and display
Create your own web site to respond request (Recall not possible on Room 17 desktops)
Find an API to request data and process and display
Submit as Lab11b
P8L11bTraDanRequests.apk
Submit video as appropriate