Our website uses necessary cookies to enable basic functions and optional cookies to help us to enhance your user experience. Learn more about our cookie policy by clicking "Learn More".
Accept All Only Necessary Cookies
Assignment A icône

1.0 by Taranjeet Singh


Feb 12, 2019

À propos de Assignment A

Ceci est mon affectation au collège

Create the following program:

Your program will function in a similar way to your previous lab (3A).

You will have a Main Activity with 1 TextView, 1 EditView and 3 buttons.

You will also have a View Activity with the following parameters: 1 TextView, 1 EditView and 3 buttons

Whereas in your first lab you implemented the code for the onClickListener within the method call, this time you will keep the code within the fields of the class.

You will also code a java class called Student.java whose fields will be entered by the user and stored in an array in the View class.

For each activity, you will implement a field as a way to use your methods. All listener methods will keep it's implementation within the fields. Every time a different listener method is called you will use the implementation of a different field.

Main Activity

Main Activity's Views will be named and do the following:

Instructions - Text View

- Gives the user instructions on how to enter their data for the string field

Input - Edit View

- Will capture the data from the user and assign it into the Student object's fields

The Main Activity's buttons will be named and do the following:

Add

- Takes the user's input and stores it into a field that will be assigned to the Intent object

- Each click will pop a toast message that informs the user what they have entered

- The user will only enter the name to be sent in the intent

Display

- When clicked it will display the string that have been entered by the user so far.

Send

- Will package all fields and their corresponding types in an intent to View activity.

- The intent will only contain the string that the user will enter

View Activity

View activity will create the first Student object in the array with the information received in the Intent.

View activity's views will named and do the following:

Display - Text View

- Will show the user the information that was sent from Main Activity by default

Input - Edit View

- Will capture new information for the new Student object

View activity's buttons will be named and do the following:

Show

- Shows the fields of the current Student object that is selected in the Student array

Add

- Will capture new strings from Input and add a new Student object to View Activity

- If the limit of the array is reached, it will add a new student to the beginning of the array

- It will also pop a toast on what has happened ("Added new student")

Next

- Will pop a toast indicating the id number of the Student object selected in the array

- If the array is at the max number of Students or max limit of the array, it will start at the beginning

Prototypes

Main Activity{}

- String name

send Message(); // Sends the user to the second activity

toast Message();

View Activity{}

- int count

- int max

- Student[10] student Array

toast Message();

Student{}

- int id

- String name

- Boolean enrolled

Chargement de la traduction...

Informations Application supplémentaires

Dernière version

Demande Assignment A mise à jour 1.0

Nécessite Android

4.0.3 and up

Available on

Télécharger Assignment A sur Google Play

Voir plus

Quoi de neuf dans la dernière version 1.0

Last updated on Feb 12, 2019

Minor bug fixes and improvements. Install or update to the newest version to check it out!

Voir plus

Assignment A Captures d'écran

Articles populaires dans les dernières 24 heures

Charegement du commentaire...
Abonnez-vous à APKPure
Soyez le premier à avoir accès à la sortie précoce, aux nouvelles et aux guides des meilleurs jeux et applications Android.
Non merci
S'inscrire
Abonné avec succès!
Vous êtes maintenant souscrit à APKPure.
Abonnez-vous à APKPure
Soyez le premier à avoir accès à la sortie précoce, aux nouvelles et aux guides des meilleurs jeux et applications Android.
Non merci
S'inscrire
Succès!
Vous êtes maintenant souscrit à notre newsletter.