The StackApp runs on Android operating systems versioned 7.0 (Nougat) or higher. Currently, the application is only available to developer-configured phones through Android Studio. Android Studio can be downloaded and installed by following the official installation guide.
Once Android Studio is installed, navigate to:
File > New > Project from Version Control
and paste the following into the “URL” field:
https://github.com/Geesing/CPSC-544-HW02.git.
Select “Clone.” Open the resulting project and select “Trust Project.”
On an Android phone running Android 7.0 (Nougat) or higher, check that “developer options” are enabled in your device settings. Developer options can be enabled by following this official guide. Within the developer options, enable “USB debugging.” Then, connect the Android phone to the computer with a USB-type cable. Within the StackApp project on Android Studio, click the icon labeled “Running Devices” in the right sidebar. Click “+” next to the “Running Devices” label and select your phone. Click “Acknowledge.” Android Studio will install the StackApp.
The StackApp utilizes a “command-line” style interface. This means that all of the application’s operations are executed by typing out simple instructions and pressing “enter.” Under the field labeled “Enter Command…”:
- Input a valid command:
push <integer value>popquit
push accepts 1 argument: an integer in the range [0, 9]. The provided integer will be “pushed” onto the end of the Stack.
pop accepts no arguments. It will remove and display the last integer that was “pushed” onto the Stack.
quit accepts no arguments. It will prompt you to close the app by typing yes or y. Type anything else to cancel.