- •Introduction
- •External apIs
- •Connecting to public apIs
- •Interacting with soap services
- •2 Creating a mobile application for os Android
- •2.1 Eclipse
- •2.2 Web Server
- •2.3 Php and json
- •2.4 Java
- •2.5.1 The use case diagram
- •2.5.2 The sequence diagram
- •3 Implementation of the project
- •3.1 Architecture of application
- •3.2 Description of the classes
- •3.2.1 MainActivity.Java
- •3.2.2 Register.Java
- •3.2.3 Login.Java
- •3.2.2.1 Description of the functions and variables of the class Register.Java
- •3.2.5 Call.Java
- •3.3 Php scripts
- •3.4 Xml files
- •3.5 User's Guide to the application's
- •4. Economic Part
- •4.1 Economic efficiency
- •4.2 Android Market
- •4.3 Calculation of the costs of developing software
- •4.3.1 Calculation of the cost of materials
- •4.3.2 Expenditure on salaries
- •4.3.3 The costs of operation and maintenance of equipment
- •4.4 Calculation of profit
- •5 Health and life safety
- •5.2 Analysis of dangerous and harmful factors
- •5.3 Production sanitation and health
- •5.4 Electrical safety
- •5.5 Fire safety
- •5.6 Safety precautions when working with a computer
- •5.7 Calculation of artificial light and noise workplace laboratories "nit"
3.2.2 Register.Java
This class is used for registering user. Registration is very simple, it has only login, password and for checking re-password. It has 3 textbox and 1 button for submission.
Description of the functions and variables of the class Register.java
protected void onCreate (Bundle savedInstanceState) - it is a function of the main interface for querying
public void onClick (View v) - this function starts when you press the button, and if the entered information is correct, sends the information to the database and logs the user
public void onPreExecute () - this function creates a PDialog and shows until the program receives data from the Base
protected String doInBackground (String. .. args) - main function is to register
protected void onPostExecute (String file_url) - sends data to the interface
Table 3 – variables of class Register.java
Name |
Type |
Description |
jsonParser |
JSONParser |
To send information to the base |
Submit |
Button |
If the information entered is correct, sends the information to the database and logs the user |
ePass |
String |
Variable for storing passwords |
rePass |
String |
Variable for storing the password again |
eError |
String |
Display errors on this variable if you want to |
Ok |
Boolean |
To verify the correct password |
Ko |
Boolean |
To check the stored contacts |
Yo |
TextView |
Text if you have successfully logged |
url |
String |
URL php script |
Success |
Int |
For validation |
PDialog |
ProgressDialog |
Animation boot |
Login |
String |
user |
3.2.3 Login.Java
This class is used for login the user. For login user must write only to parameters: login and password. If this parameters are true, user enters to the main page.
3.2.2.1 Description of the functions and variables of the class Register.Java
protected void onCreate (Bundle savedInstanceState) - it is a function of the main interface for querying
public void onClick (View v) - this function starts when you press the button, and if the entered information is correct, sends the information to the database and logs the user
public void onPreExecute () - this function creates a PDialog and shows until the program receives data from the Base
protected String doInBackground (String. .. args) - main function is to register
protected void onPostExecute (String file_url) - sends data to the interface
Table 4 – variables of class Login.java
Name |
Type |
Description |
jsonParser |
JSONParser |
To send information to the base |
Submit |
Button |
If the information entered is correct, sends the information to the database and logs the user |
ePass |
String |
Variable for storing passwords |
rePass |
String |
Variable for storing the password again |
eError |
String |
Display errors on this variable if you want to |
Ok |
Boolean |
To verify the correct password |
Ko |
Boolean |
To check the stored contacts |
Yo |
TextView |
Text if you have successfully logged |
url |
String |
URL php script |
Success |
Int |
For validation |
PDialog |
ProgressDialog |
Animation boot |
Login |
String |
user |
login |
String |
for login |
password |
String |
For password |
3.2.4 Succes.java
This class is uses when user logged in. User can call without backup, or save all contacts to server, and backup saved contacts to his mobile phone. This class is the main class in case of functionality. And also in this page has a log out button to exit from authorized page.
Description of the functions and variables of the class Success.java
protected void onCreate (Bundle savedInstanceState) - it is a function of the main interface for querying
public void onClick (View v) - this function starts when you press the button Button, and if the entered information is correct, sends the information to the database and logs the user
public void onPreExecute () - this function creates a PDialog and shows until the program receives data from the Base
protected String doInBackground (String. .. args) - main function is to register
protected void onPostExecute (String file_url) - sends data to the interface
Table 5 – variables of class Success.java
Name |
Type |
description |
jsonParser |
JSONParser |
To send information to the base |
Submit |
Button |
If the information entered is correct, sends the information to the database and logs the user |
Phone |
String |
phone number contact |
name |
String |
phone name of contact |
Save |
Button |
Button for saving |
Backup |
Button |
Button to download the data |
Logout |
Button |
Button to exit |
Yo |
TextView |
Text if you have successfully logged |
url |
String |
URL php script |
Success |
Int |
For validation |
PDialog |
ProgressDialog |
Animation boot |
Login |
String |
User login |
Ok |
Boolean |
To verify the correct password |
Ko |
Boolean |
To check the stored contacts |