- •Introduction
- •Mobile Android platform
- •In addition, it was reported that Google will, at its discretion, remove applications on phones users if developers violated their terms of use.
- •Description of the main mobile platforms
- •Android sdk and jdk
- •Eclipse
- •Web Server
- •Php and json
- •The use case diagram
- •Figure 4 - Example of a use case diagram
- •3.2.2 Register.Java[11]
- •3.2.4 Succes.Java[11]
- •3.2.5 Call.Java[11]
- •3.2.6 JsonParser.Java[11]
- •Figure 9 - jsonParser.Java
- •3.5 User's Guide to the application's
- •4.2 Android Market
- •4.3.3 The costs of operation and maintenance of equipment
- •5.2 Analysis of dangerous and harmful factors
- •5.3 Production sanitation and health
- •5.6 Safety precautions when working with a computer
- •Figure 16 - location of fixtures
- •Conclusion
- •References [1] Android, the world's most popular mobile platform http://developer.Android.Com/about/index.Html
- •19.12.2007) Astana, Akorda, on May 15, 2007
- •[14] Php Cookbook: Solutions and Examples for php Programmers, Second Edition, David Sklar,August, 2006
3.2.4 Succes.Java[11]
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, and if the information is correct, it sends the information to the database and logs the user in.
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 |
Continue of Table 5 – variables of class Success.java |
||
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 |
3.2.5 Call.Java[11]
This class is used when the user selects Call without backup. In this page user can see all his contacts and his phone number. When he presses one of the contacts, the application will automatically call this contact.
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, it sends the information to the database and logs the user
public void onPreExecute () - this function creates a PDialog and is shown 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 6 – variables of class Call.java
Name |
Type |
Description |
jsonParser |
JSONParser |
To send information to the base |
Phone |
String |
phone number contact |
Continue of Table 6 – variables of class Call.java |
||
name |
String |
phone name of contact |
Reg |
Button |
Button registration |
Login |
Button |
Button for login |
List |
ListView |
List of all contacts |
Pho |
TextView |
List of phones |
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 |