Android app for the #bodyapps project with Gradle
Please join our communication channels.
Mailing List at: https://groups.google.com/forum/#!forum/bodyapps
Gitter chat at: https://gitter.im/fossasia/bodyapps
Main IDE used by the team is IntelliJ-based Android Studio. To get started, download and install Android Studio, then choose "Import Project" and navigate to the project root. Studio should import the Gradle-based structure without much ado.
Note: for testing in an emulator, see Emulator section below.
We feel very comfortable with Android Studio so far and see no need to use ADT. If you want to use it anyway, please feel free to contribute patches and/or setup-instructions.
Project requires Play Services which are not available in all versions of the Emulator. We recommend testing on a connected device or via GenyMotion. When running, GenyMotion instances act like connected devices and can be selected via ADB during launch.
To install Play Store and subsequently Play Services, follow the instructions here
To get information from Google API it is required to create project in Google developer console.
You can test the sync options manually by cloning the web application and running it on local host if you dont want to work with online web service. Simply change the baseURL in Sync.java class according to your local host address and port.
There are five folders (or packages) in the org.fashiontec.bodyapps package.
There are five main screens in the app. And there is an activity for each main screen. All of these activities are in the package org.fashiontec.bodyapps.main
This is the landing activity of the app. Contains buttons which leads to other screens such as saved, create and settings. If there is no user logged in it generates an alert dialog and disable create and saved buttons. At the startup it initiates sync process if Auto sync is turned on.
This activity provides the screen to log in using Google. It takes user’s name and email from G Plus API and sends it to BodyApps server to create account for user and then get a ID for user. Then it saves those data in local database. When user is logged in, it displays user’s picture from G Plus, user’s name and user’s email. And it will display option to turn auto sync on or off.
This activity provides screen to create a measurement record. It is a simple activity with no http calls and only contains two edit texts, two spinners and date picker dialog.
This is the activity which handles adding measures to measurements. This is bit complex and contains one static activity and number of Fragments. If device is portrait mode the screen will only show icon grid and by clicking respective measurement set will open. If device is in landscape mode icon grid and measurement sets will be displayed side by side.
This Fragment handles the grid view which shows icons which lead groups of measures.
Supporting activity which loads measurement set fragments when device in portrait mode.
Head, Neck, Shoulder, Chest, Arm, Hand, Leg, Trunk and Heights measurement groups or measurement sets. Each one these are Fragments and contains edit texts where user can enter respective measurements. Some of them contains spinners. These fragments will be loaded directly to MeasurementActivity if device is in landscape mode. Else they will be loaded to ItemActivity.
This fragment deals with adding pictures to measurement record. It contains three buttons Front, Side and back. Clicking these buttons will open a dialog where user will be able select their image source or they can remove existing picture.
This Fragment handles the additional notes added to measurement record.
This activity shows the list of measurements current user has created and it allows options such as edit, delete and getting HDF. This activity contains two Fragments and one static Activity. If device is in portrait mode the screen will only show list of measurements and by clicking respective measurement it will show the contents.. If device is in landscape mode list and measurement contents will be displayed side by side.
This Fragment contains the list that shows measurements.
If device is in portrait mode this static Activity will load ViewSavedFragment and will show the contents of the measurement selected from list.
This Fragment has bunch of labels in it’s layout and displays contents of selected measurement. It gets loaded to ViewSavedActivity if device is in portrait mode or to SavedActivity if device is in landscape mode.

298 followers · starred Dec 2017
62 followers · starred Sep 2019
136 followers · starred Feb 2018
107 followers · starred Sep 2018
Android app for the #bodyapps project with Gradle
Please join our communication channels.
Mailing List at: https://groups.google.com/forum/#!forum/bodyapps
Gitter chat at: https://gitter.im/fossasia/bodyapps
Main IDE used by the team is IntelliJ-based Android Studio. To get started, download and install Android Studio, then choose "Import Project" and navigate to the project root. Studio should import the Gradle-based structure without much ado.
Note: for testing in an emulator, see Emulator section below.
We feel very comfortable with Android Studio so far and see no need to use ADT. If you want to use it anyway, please feel free to contribute patches and/or setup-instructions.
Project requires Play Services which are not available in all versions of the Emulator. We recommend testing on a connected device or via GenyMotion. When running, GenyMotion instances act like connected devices and can be selected via ADB during launch.
To install Play Store and subsequently Play Services, follow the instructions here
To get information from Google API it is required to create project in Google developer console.
You can test the sync options manually by cloning the web application and running it on local host if you dont want to work with online web service. Simply change the baseURL in Sync.java class according to your local host address and port.
There are five folders (or packages) in the org.fashiontec.bodyapps package.
There are five main screens in the app. And there is an activity for each main screen. All of these activities are in the package org.fashiontec.bodyapps.main
This is the landing activity of the app. Contains buttons which leads to other screens such as saved, create and settings. If there is no user logged in it generates an alert dialog and disable create and saved buttons. At the startup it initiates sync process if Auto sync is turned on.
This activity provides the screen to log in using Google. It takes user’s name and email from G Plus API and sends it to BodyApps server to create account for user and then get a ID for user. Then it saves those data in local database. When user is logged in, it displays user’s picture from G Plus, user’s name and user’s email. And it will display option to turn auto sync on or off.
This activity provides screen to create a measurement record. It is a simple activity with no http calls and only contains two edit texts, two spinners and date picker dialog.
This is the activity which handles adding measures to measurements. This is bit complex and contains one static activity and number of Fragments. If device is portrait mode the screen will only show icon grid and by clicking respective measurement set will open. If device is in landscape mode icon grid and measurement sets will be displayed side by side.
This Fragment handles the grid view which shows icons which lead groups of measures.
Supporting activity which loads measurement set fragments when device in portrait mode.
Head, Neck, Shoulder, Chest, Arm, Hand, Leg, Trunk and Heights measurement groups or measurement sets. Each one these are Fragments and contains edit texts where user can enter respective measurements. Some of them contains spinners. These fragments will be loaded directly to MeasurementActivity if device is in landscape mode. Else they will be loaded to ItemActivity.
This fragment deals with adding pictures to measurement record. It contains three buttons Front, Side and back. Clicking these buttons will open a dialog where user will be able select their image source or they can remove existing picture.
This Fragment handles the additional notes added to measurement record.
This activity shows the list of measurements current user has created and it allows options such as edit, delete and getting HDF. This activity contains two Fragments and one static Activity. If device is in portrait mode the screen will only show list of measurements and by clicking respective measurement it will show the contents.. If device is in landscape mode list and measurement contents will be displayed side by side.
This Fragment contains the list that shows measurements.
If device is in portrait mode this static Activity will load ViewSavedFragment and will show the contents of the measurement selected from list.
This Fragment has bunch of labels in it’s layout and displays contents of selected measurement. It gets loaded to ViewSavedActivity if device is in portrait mode or to SavedActivity if device is in landscape mode.

298 followers · starred Dec 2017
62 followers · starred Sep 2019
136 followers · starred Feb 2018
107 followers · starred Sep 2018