Users    Developers


Developers

Requirements
Installation guide
Expected knowledge
Development status
Developer guidelines
Code documentation

Requirements

Installation guide

  1. Goto the file section on sourceforge and open the folder source files (developers)
  2. Download and open the folder "Senior Service"
  3. Import and run the script file "seniorserviceDB.sql" on the database on you're webserver
  4. Create a user and password for accessing the database (there are finished create statements commented out in the script)
  5. Open the file "dbworker.php"
  6. Set the variable called "$host" to you're database domain name
  7. Set the variable called "$db" to you're database name
  8. Set the variable called "$user" to you're database username
  9. Set the variable called "$pass" to you're database password
  10. Copy the file called "dbworker.php" to your webserver
  11. Import the folder "SeniorService_src" to your developer tool (Eclipse with Android SDK is recommended)
  12. Open the class "Control" located in SeniorService/src/ and in the package called hibu.LeiJonGun.seniorservice.
  13. Find the inner class "aTask" and the HttpPost variable "httppost". Insert the full path to the "dbworker.php" file located on you're webserver
  14. Run Senior Service on you're Android device

Expected knowledge

Development status

List of known bugs

Senior service has only been Alpha tested (2013.05.25). The application has not been fully tested (stress tested, multiple devices etc.) over a periode of time.

Developer guidelines

The preferred language for all reporting/commenting/coding is English.

Code documentation


Packages in the "src" folder:

On the top of all classes there is a general description of the class. There is also a description to functions and variables where we have seen it necessary to have it, this is placed above the function/variable.

The layout filename has the same as the activities filename it's used by. Example: Activity filename: ActLogIn.java, Layout filename: act_log_in.xml.

Values XML files have been commented to show what layout files the different values belongs to. The layout filename is placed above the values that belongs to that spesific layout file.

Pictures(.png) has been placed in the folder "res/drawable/". It's mess with all these pictures at one place. But we could not find out how to divide these pictures to sub folders.

PHP file: dbworker.php. There are comments above each "if test" where the comment explain what request this test contains. The request comes from the application.