Skip to content

NCKU-CCS/dengue-android

Repository files navigation

Dengue App - Android

Table of conetnt

Getting Started

Prerequisite

Setup

  • API URL

    • Before building the Android App, the backend server for dengue app should be started.
    • After the app starts, you should set the APIDomain in the following files to your server host.
      • app/src/main//BreedingSourceSubmit.java (Line 278)
      • app/src/main/java/com/example/dengue/dengue_android/Drugbite.java (Line 76)
      • app/src/main/java/com/example/dengue/dengue_android/hospital.java (Line 314)
      • app/src/main/java/com/example/dengue/dengue_android/Report.java (Line 244, 335)
      • app/src/main/java/com/example/dengue/dengue_android/signUpFast.java (Line 30, 74)
      • app/src/main/java/com/example/dengue/dengue_android/UserLogin.java (Line 84)
      • app/src/main/java/com/example/dengue/dengue_android/userProfile.java (Line 45)
        • app/src/main/java/com/example/dengue/dengue_android/UserSignup.java (Line 62)
  • Google Map API Key

    • Change in app/src/main/AndroidManifest.xml (Line 25)

Build

  • Build through Android Studio

Usage

Develop

Structure

Structured according to android studio projects Overview

  • Breeding Source (孳生源回報)

  • Drugbite (蚊子咬回報)

  • Guild (導覽畫面)

  • Report (回報審核點清單)

  • User (使用者相關)

  • Hospital (醫院清單)

  • Hot (熱區 web view)

  • Session (Use to save data.)

    • setData(String key, String value)

      • key: key of data
      • value: value of data
    • getData(String key)

      • key: key of data
      • It will return value.
    • Example

       string AppName = "dengue";
       session Session = new session(getSharedPreferences(AppName, 0));
       
       session.setData("isLogin", "true");
       // it will save isLogin as "true".
       session.getData("isLogin");
       // it will return "true"
      
  • GPS (Use to get address name.)

    • get(double lat, double lon)

      • lat: double type
      • lon: double type
    • Example

       // "this" is android activity.
       gps Gps = new Gps(this);
       Gps.get(0.0, 0.0);
       // it will return a name of [0, 0]
      

Issue

  • 未來要修改介面的話,在未登入都情況下按下個人設定按鈕,再按註冊下面的小字進入登入頁面,如果使用者他其實是未註冊的,現在想要退回去可能不知道怎麼操作比較好
  • By the time of 2018/11/01, Google Play no longer support API level lower than 26. Thus, this app might not be able to be published on Google Play.

License

Copyright (c) NCKU The Mosquito Man Project. All rights reserved.

Licensed under the MIT License.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages