Skip to content

LulaV14/android_demo

Repository files navigation

android_demo

This is a demo for a simple Android app.

The app has two views, a Main Activity and WebView for details.

MainActivity

The Main Activity has a List of posts/stories from this API (http://hn.algolia.com/api/v1/search_by_date?query=android)

I'm using Retrofit Library (http://square.github.io/retrofit/) to fetch HTTP requests.

And for the ListView I'm using a RecyclerView to add the functionality of the swipe down to refresh and swipe left to delete a post.

The stories are also downloaded to the local SQLite Database and refresh every time the activity starts or swipe down refresh. In the local database I keep track of the deleted posts with a boolean property called "deleted" in order to show only the undeleted stories.

WebViewActivity

The WebViewActivity is pretty simple, it has a webview, and I added a progressbar to show when the webpage is waiting to load and it hides when finished loading.

Extended Features

I'm planning to add tests to all functionality of the app, right now given the time I couldn't complete that.

Video Walkthrough

Here's a little walkthrough of the implemented work:

Video Walkthrough

GIF created with LiceCap.

Will keep updating.

PS: You don't need anything special to run the app.

About

This is a demo for a simple Android app.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages