Giter VIP home page Giter VIP logo

drdab / trcattendance-android Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 0.0 3.37 MB

An Android port of the TRC Attendance app for FRC meeting attendance logging

Home Page: http://www.titanrobotics.com/

License: MIT License

Java 100.00%
meeting students android-port trc-attendance participation attended-meetings titan robotics club 492 3543 frc first robotics-competition time-tracker timer

trcattendance-android's Introduction

TrcAttendance-Android

An Android port of the TRC Attendance app. Desktop version available here: https://github.com/trc492/TrcAttendance

Attendance Logger - Tool to log students' participation in meetings.

In our team, each student is required to participate a minimum number of hours of meetings during the build season in order to participate in competitions. This app is intended for mobile attendance tracking for an Android tablet or phone while away from the meeting place. Each student, when walking in, will select their names on the check-in list and click the check-in button. When leaving, they will select their names in the check-out list and click the check-out button. This allows us to keep track of the minutes they have attended meetings. The program keeps track of this info in an Excel spreadsheet which can sum up the total hours of each student if needed.

License

MIT License

Copyright (c) 2018 Titan Robotics Club

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

trcattendance-android's People

Contributors

drdab avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

trcattendance-android's Issues

App crash while trying to save attendants name

Expected behavior

After clicking on save attendant it should save successfully

Actual behavior

App crash instantly while trying to save attendant name

How to reproduce

  1. Open the app
  2. Click on new file
  3. Enter the name of the csv file then press okay
    4.then enter the name of the attendant ,click save ,app will crash instantly

  • Browser/App version: TRC Attendance Logger version 1.0.0
  • Operating system: Android marshmallow 6.0 ,tecno w3

Recording Of The Bug

videotogif_2018.06.02_11.42.39.gif

Clicking on Check-in and Check-out causes app to crash

Expected behavior

Application is expected to work perfectly well, after clicking on the check-in or check-out button

Actual Behavior

After clicking on check-in or check-out the app crashes

How to reproduce

  • Launch the application
  • Scroll down
  • Click on Check-in or Check-out

Then app crashes


Application version: v1.0.0
Operating system: Android v7.0

Recording Of The Bug

https://cdn.steemitimages.com/DQmf5cdo7RKNCgumhgF8zUt47wSpw6mwkPBdzojucC5Fbox/videotogif_2018.06.02_09.11.11.gif

App crash instantly after clicking on create meeting

Expected behavior

After clicking on create the app should keep working.

Actual behavior

App crash instantly after clicking on create

How to reproduce

  1. Open the app
  2. Click on create, it will crash instantly
  3. Bug is visible

  • Browser/App version: TRC Attendance Logger version 1.0.0
  • Operating system: Android marshmallow 6.0 ,tecno w3

Recording Of The Bug

videotogif_2018.06.02_10.54.22.gif

App crash instantly after clicking on open file

Expected behavior

After clicking on open file app should keep working as it is expected

Actual behavior

App crash instantly clicking on open file

How to reproduce

  1. Open the app
  2. Click on the menu option at the top of the app .
  3. The click on open file app will crash instantly

  • Browser/App version: TRC Attendance Logger version 1.0.0
  • Operating system: Android marshmallow 6.0 ,tecno w3

Recording Of The Bug

videotogif_2018.06.02_11.20.38.gif

Buggy code

Don't know what this code is doing but my common sense told me this code doesn't look right.
OnActivityResult in MainActivity.java:

    // add new attendants into the list.
    for(int i = 0; i < DataStore.attendanceLog.attendantsList.size(); i++)
    {
        DataStore.allAttendants = new ArrayList<Attendant>();
        Attendant lol = DataStore.attendanceLog.attendantsList.get(i);
        DataStore.allAttendants.add(lol);
        if(DataStore.checkInList.indexOf(lol) == -1)
        {
            DataStore.checkInList.add(lol);
        }
    }

Inside the for-loop, you are creating a new ArrayList overwriting DataStore.allAttendants in every loop. Then you added only ONE element to the array, loop again, created another new ArrayList, added the next ONE element to the new array and repeat โ€ฆ

Add Version Control Support

It may be a good idea to add Mercurial or support for some other version control system for the app, for easy synchronization of the attendance log.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.