ERNICommunity / erni-moods-android

Android ERNI moods app (Hack Sessions)
0 stars 0 forks source link

ERNI Moods

:warning: REPOSITORY NOT ACTIVE SINCE 2015 Dependabot alerts disabled

Important note for new project members

The best way to get up and running is to download the latest stable version of Android Studio. Currently version 1.0.x.

Then checkout the newBuild branch. The build scripts have been changed on this branch to make it easier to work with the latest version of Android Studio.

It is not possible to use Eclipe for this project.

This video explains how Android Studio and Gradle work: [https://www.youtube.com/watch?v=0bhbQdZLpIE] (https://www.youtube.com/watch?v=0bhbQdZLpIE)

How to get involved

Issues are tracked using the github [issues] (https://github.com/ERNICommunity/erni-moods-android/issues) feature If you want to get involved, then please get started assigning unresolved issues to yourself and fixing them :-)

Android app

This is the ERNI Moods app for Android, developed during the Hack Sessions and the ERNI Hack Day. The app is a client for the [Erni Moods backend API] (https://github.com/ERNICommunity/erni-moods-backend)

Brief architectural overview

model

Mood

Class representing the user's mood

User

Class representing the user

GooglePlace

Class representing a mood marker on the map

controller

EntryPoint

Activity that is the first one created when the application starts. We use and swap-in/out Fragments to display different screens

SignUpFragment

Allows the user to sign up and validates the input.

LoginFragment

For logging in user who is already signed up.

MyMoodFragment

The core of the app - here you select your current mood which is then shared with all the other users.

MoodsNearMeActivity

This shows the moods on a Google Map.

SettingsActivity

This inflates SettingsFragment which contains the user preferences. The username and password are stored in preferences.xml

service

FormValidator

A helper class for validating form input

MoodsJSONParser

Provides a set of static methods to marshall and unmarshall User and Mood objects to JSON

api

UserBackend

Implementation of the Interface IUserBackend to query User data from the backend

MoodsBackend

Implementation of the Interface IMoodsBackend to query Mood data from the backend

PlacesBackend

Implementation of the Interface IPlacesBackend to query Mood data from the backend

InternetAccess

Extends AsyncTask to handle http requests