Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Where should I start

  1. #1
    Junior Member
    Join Date
    Jun 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Where should I start

    Hi guys first I am sorry I am a total noob here and wasn't sure we're to post this.

    I am a fire fighter and when we go out on fires we be gone for weeks sometimes. So I am trying to figure out how to make an android app that I can insert my start time and the incident name.

    Now here is the tricky part when I am out on fire we do 24 hour work cycles so from 7 am to 7 am we get paid so 8 hours of that is straight time and the rest is overtime. Also if I work on my days off I get 24 hours of overtime which is considered red overtime hours due to it being under fire. Once done I would like to go back to station and print it out on a specific form we use.

    Also I have to keep track of my station overtime which is if I am covering for a guy that is sick and I have to work his shift then that is black overtime hours.

    would there be away to have it track ally black hours and my red hours when you first login.

    I know it is a lot but I know

    Thanks Alot
    Dave


  2. #2
    Forum VIP
    Join Date
    Jul 2010
    Posts
    1,676
    Thanks
    25
    Thanked 329 Times in 305 Posts

    Default Re: Where should I start

    It is certainly doable, but you need to consider a few things:
    1. You need to familiarize yourself with the Android API (obviously) and Java (basic java skills is probably all you'll need for this)
    2. Where do you want to "save" your time information? Do you want to save it to your device, save it to some sort of online storage, ect.?
    3. Do you want the program to get the time based on the current time, or do you want to be able to adjust the time (for example, let's say you were on the clock but didn't get around to starting the app until 5-10 minutes later for some reason)?

    Break your problem up into different program flows. For example:
    Primary Flow:
    1. Log in, get time, save time as start time
    2. Log in again, get time, save time as end time (alternatively, you can keep the program running all day and record the time when you close it, but that seems like a waste of phone resources)
    Secondary Flow 1:
    ** Some sort of way to track when you are covering for someone
    Secondary Flow 2:
    ** Some sort of way to print the information (if you want to print to a specific form, that can probably be done, but it will most likely require some creativity. It depends on the form.)

    What you have is a good start. But before you try to do anything, I suggest you hash out in extreme detail specifically what you want to do, how you want to store the data, ect. Also, get a piece of paper and draw out how you want your user interfaces to look. It is easier to sort it out on paper before trying to redesign it in code.
    NOTE TO NEW PEOPLE LOOKING FOR HELP ON FORUM:

    When asking for help, please follow these guidelines to receive better and more prompt help:
    1. Put your code in Java Tags. To do this, put [highlight=java] before your code and [/highlight] after your code.
    2. Give full details of errors and provide us with as much information about the situation as possible.
    3. Give us an example of what the output should look like when done correctly.

    Join the Airline Management Simulation Game to manage your own airline against other users in a virtual recreation of the United States Airline Industry. For more details, visit: http://airlinegame.orgfree.com/

  3. #3
    Junior Member
    Join Date
    Jun 2014
    Posts
    22
    My Mood
    Starving
    Thanks
    1
    Thanked 8 Times in 6 Posts

    Default Re: Where should I start

    What do you have so far? Can you post what you have coded already?

Similar Threads

  1. how do i start
    By leolyte in forum What's Wrong With My Code?
    Replies: 1
    Last Post: June 18th, 2013, 07:20 AM
  2. How to start
    By ashwinjava in forum Member Introductions
    Replies: 2
    Last Post: January 29th, 2012, 04:03 PM
  3. Where do i start?
    By cejay in forum Java Theory & Questions
    Replies: 9
    Last Post: September 10th, 2011, 04:21 PM
  4. Start code again?
    By mortalc in forum Loops & Control Statements
    Replies: 12
    Last Post: May 27th, 2010, 07:26 PM
  5. Where to start?
    By tonykasdorf in forum Java Theory & Questions
    Replies: 3
    Last Post: March 4th, 2010, 11:52 PM