The technical documentation focuses in the technical aspects of the Context Broker Healthy Leisure citizen app, as well as it explains how to develop new features or how specific parts of the solution work.
To use the application, it is recommended to follow the deployment manuals. However, to launch the application for development purposes, follow these instructions.
- Android 10 (API 29)
-
Download de APK file from the following link.
-
Copy the APK file into your smartphone using the preferred method (USB cable, shared folder, etc.).
-
In the smartphone, click on the APK file.
-
Accept the installation and if a notice appears that the author is not known, click on the "follow anyway" button.
-
The application will be installed on the smartphone.
The following technologies have been used for the development and the deployment of the Context Broker Healthy Leisure Citizen app:
The app gets the information from Context Broker Healthy Leisure web component. You need to indicate diferent endpoints in your API to ingest correctly the information in the citizen app.
At the beginning of the fragments you can see the variables that contain the API URL. Example:
class BeachFragment : Fragment() {
val client = OkHttpClient()
var Levante : Beach = Beach()
var Poniente : Beach = Beach()
var urllevante = "http://your_api_url" //Copy here the API URL
var urlPoniente = "http://your_api_url" //Copy here the API URL
You have to change the value of "your_api_url" for the direction in which you have your API. For example:
class BeachFragment : Fragment() {
val client = OkHttpClient()
var Levante : Beach = Beach()
var Poniente : Beach = Beach()
var urllevante = "http://visitBenidormcity.com/levanteBeach"
var urlPoniente = "http://visitBenidormcity.com/ponienteBeach"
The fragments that you have to change are:
- BeachFragment.kt
- BikeFragment.kt
- HomeFragment.kt
- StreetFragment.kt
You also have to change the following .kt files:
- MainActivity.kt
- MainMenu.kt