landfill-eforms / landfill-android-app

0 stars 2 forks source link

Landfill e-Forms Application Project (Mobile Application)

The Landfill e-Forms Mobile Application is a data entry application for the City of Los Angeles, Department of Sanitation inspectors to use out on the field while performing land surveys.

Table of Contents

Prerequisites

This sections lists the prerequisites for each component of the mobile application separately.

Mobile Application Development

Mobile Application Database

The Android SDK and Android emulators (such as HAXM) both include the sqlite3 database tool. In development, import android.database.sqlite would import the library. More documentation on sqlite3 can be found here.

Environment Setup

To open the project, start Android Studio and select:

Open an existing Android Studio project

In the directory, go to the folder in which the repository was cloned, and select:

landfill-android-app

NOTE: The first time the project is opened, Gradle will take a bit to build the project.

The app folder will contain three folders: manifests, java, and res. manifests will contain the xml file with all of the application activities. java will contain the Java code used to develop the application. res will contain the xml files used to layout each application activity.

Application Installation

For application installation, a phone running Android 5.1 (Lollipop) or higher is required.

NOTE: Go into the device's security setting and enable Unknown sources which allows the installation of applications from sources other than the Google Play Store.

Install through Android Studio

Open Android Studio, and open the landfill-android-app project. If you have not set up your Android development environment, please see the Environment Setup instructions above.

Connect phone to computer running Android Studio and make sure it recognizes the device.

With device connected, in the menus go to Build > Build APK and application will be installed on device.

NOTE: After any updates to the database, go to the Application Manager on device, select the Landfill e-Forms Application, and Clear All application data to avoid application crashing. The application will be installed but will crash if there are conflicts in the database. Be sure to clear data for clean install.

Install through File Download

With no device connected, in the menus go to Build > Build APK and application .apk file will be downloaded inside the project folder. To retrieve .apk file go to:

landfill-android-app > app > build > outputs > apk

Send .apk file to selected device and open .apk file for immediate installation.

NOTE: After any updates to the database, go to the Application Manager on device, select the Landfill e-Forms Application, and Clear All application data to avoid application crashing. The application will be installed but will crash if there are conflicts in the database. Be sure to clear data for clean install.