Posts

Showing posts from February, 2021

Sunday 28th of February Update

Image
This weekend I worked more to modify the project tutorial to fit my needs with the API. One of the challenges I faced was that the API requires a new token every hour in order to get the data. To get around this a I created a function using an HTTP POST request to get my new token and store it in a variable. This function is called at the launch of the app and also whenever the GET requests return error code 401 for unauthorized request.  Here is what the emulator app looks like I changed the three buttons to relate more to my project and they do exactly as they say and just show the data in a notification.  This is a little screenshot of the source code I wrote this weekend. This doesn't show it all, but is just shy of 300 lines and just does some pretty basic stuff to get me familiar with some new libraries and working with Android Studio. I used these and a few other websites to help me figure out how to make my code work GET and POST requests Request Queues

Wednesday February 24th Update

Image
 Today I began looking for more resources and tutorials I can use to learn how to make an application. I started watching and following along with this tutorial  which shows you how to use REST api's in android studio and display it. It will also help me just get more familiar with working with android studio as it has been a while since I used it last.  Currently this is what my following along project looks like Not much yet obviously, but I didn't spend too long working on it. Most of my time today was spent looking for more resources.  One other resource I found that I think will be useful is this  Github Repository  which implements a view that I think will be good for my app. 

Test post

 This is the test post.