An almost useful Android app

Okay, so a lot has been accomplished since my last post. I’m not as interested in getting into it, but my little Go service (which I refer to as GoWeather) now provides an hourly forecast instead of just the temperature. But most of my work has been on the Android app.

Laying out layouts

The first thing I did was drastically change the layout of the MainActivity. Now it won’t look very different to the user at this point, but behind the curtain there is much more flexibility.

UI Screenshot 1

The main layout for the activity is now just a container where I can place fragments. The current fragment will be chosen by using the sliding navigation menu seen below.

UI Screenshot 2

The Cities option seen in the menu is next on my todo list. Currently, the app gets forecasts for a hardcoded city. The Cities fragment will be used to manage the user’s saved locations. By default, the app will show the forecast for the user’s primary city.

Volley and Gson

In my previous post, I was using an AsyncTask and a JSONReader to read the temperature from the GoWeather API. Now that I want to get a little more out my service, I am utilizing a couple solid libraries to not only save myself some work, but also to hopefully contribute to the robustness of my app (which is currently at zero). Volley is a networking library, and Gson is for JSON-Java serializing/deserializing. You can read a great intro tutorial by Kyle Banks concerning the both of them here.

What’s next

You can see the repository for the GoWeatherApp here and GoWeather here.


comments powered by Disqus