iTipper Android Application
iTipper is a phone application for the Android OS that is targeted at individuals who work for tips. The primary goal of iTipper is for users to be able to record tips on the fly, keep track of how much they are earning and to be able to help users budget better. For drivers, there is a built in google maps for quickly searching for a location.
Demo Video
Images of iTipper
Main Menu:
Graphing of Tips:
View and Edit Tips (Swipe to delete):
Tip Entry and Navigation to Maps, View Tips/Graph:
Google Maps with SearchView:
The user can get directions to a searched location by clicking the blue arrow in the bottom right. This will automatically open Google Map with the route selected.
Technologies
The application’s APK is available in our repository under “Releases”. The APK can be downloaded to any android device for use.
In order to build this project and view the code, you will need to install:
Running
Once on the target device, the application can be executed like any other app. Navigate to ‘iTipper’ in the app list and open it. To run the app on a computer, with Android Studio, you have one of two choices: Either on a real device or the built-in emulator. Note that the emulator does not currently support AMD64 architecture. Detailed instructions are below.
Setting Up the Environment (Android Studio)
To install Android Studio on Windows, proceed as follows:
-
If you downloaded an
.exe
file (recommended), double-click to launch it.If you downloaded a
.zip
file, unpack the ZIP, copy the android-studio folder into your Program Files folder, and then open the android-studio > bin folder and launchstudio64.exe
(for 64-bit machines) orstudio.exe
(for 32-bit machines). -
Follow the setup wizard in Android Studio and install any SDK packages that it recommends. That’s it.
-
In the Welcome to Android Studio window, click Start a new Android Studio Project.
If you have a project already opened, select File > New > New Project. -
In the Choose your project window, select Empty Activity and click Next.
- In the Configure your project window, complete the following:
- Enter “My First App” in the Name field.
- Enter “com.example.myfirstapp” in the Package name field.
- If you’d like to place the project in a different folder, change its Save location.
- Select Java from the Language drop-down menu.
- Select the checkbox next to Use androidx.* artifacts.
- Leave the other options as they are.
- Click Finish.
Run on a real device
Set up your device as follows:
-
Connect your device to your development machine with a USB cable. If you developed on Windows, you might need to install the appropriate USB driver for your device.
-
Perform the following steps to enable USB debugging in the Developer options window:
a. Open the Settings app.
b. If your device uses Android v8.0 or higher, select System. Otherwise, proceed to the next step.
c. Scroll to the bottom and select About phone.
d. Scroll to the bottom and tap Build number seven times.
e. Return to the previous screen, scroll to the bottom, and tap Developer options.
f. In the Developer options window, scroll down to find and enable USB debugging.
Run the app on your device as follows:
-
In Android Studio, select your app from the run/debug configurations drop-down menu in the toolbar.
-
In the toolbar, select the device that you want to run your app on from the target device drop-down menu.
-
Click Run.
Android Studio installs your app on your connected device and starts it. You now see “Hello, World!” displayed in the app on your device.
Run on an emulator
Run the app on an emulator as follows:
-
In Android Studio, create an Android Virtual Device (AVD) that the emulator can use to install and run your app.
-
In the toolbar, select your app from the run/debug configurations drop-down menu.
-
From the target device drop-down menu, select the AVD that you want to run your app on.
-
Click Run.
Android Studio installs the app on the AVD and starts the emulator. You now see “Hello, World!” displayed in the app.
Testing
Unit tests are integrated with JUnit. Instrumented tests are run and supported by Espresso. The tests can either be run from inside of Android Studio or from the command line:
In the Android Studio UI
Open Android Studio. The project can be cloned by clicking File > New > Project from Version Control… > Git Enter the project URL ( https://github.com/SCCapstone/iTipper ) in the URL box, then click clone.
Once the repository is cloned, unit tests can be run from the project directory view. Locate app > java > com (test). Right click, then select “Run ‘Tests in ‘com’’”.
For instrumented tests, either connect an Android device or set up an emulator (help with setting up an emulator can be found here). Locate app > java > com (androidTest), right click, “Run ‘Tests in ‘com’’”.
From a command line interface
Clone the repository with: git clone https://github.com/SCCapstone/iTipper
Then navigate into the top level folder with: cd iTipper
If done correctly, an “ls” should show this readme as one of the files in the current directory.
Run unit tests with: ./gradlew test
To run instrumented tests, connect an Android device via USB. (Help with setting up a device for testing over USB can be found here .) Then enter: ./gradlew connectedAndroidTest
About the developers
iTipper is the product of a four member team of seniors at the University of South Carolina. Visit our githubs below and view some of our work