Skip to content

Java + JUnit. Android application to send requests to a dedicated API. The application enables efficient exchange of data in real time.

License

Notifications You must be signed in to change notification settings

sebastianbrzustowicz/Robot-tasker-client

Repository files navigation

Robot Tasker Client

Robot Tasker Client is a Java-based Android application created to establish compatible communication with dedicated API.
Compatible API which this client is communicating with is shared here.
Minimum SDK/API level is 24, which is Android 7.0 Nougat (cumulative coverage 96.8% of all devices in use).
Application was created with Android Studio.

Disclaimer

Complete version which guarantee best performance is not available publicly.
Only alpha version of app with license restrictions is available.
Please contact me if you are interested in cooperation.
I am willing to help.

Views

Some of the implemented views:

Hierarchy of views

A hierarchy of XML layout files is as follows:

- `res`
  - `layout`
    - `activity_login.xml`
      - `activity_menu.xml`
        - `activity_vehicle_menu.xml`
          - `activity_vehicle_runtime.xml`
        - `activity_register_vehicle.xml`
          - `activity_register_custom_vehicle.xml`
    - `activity_register.xml`

Transferred data

The data sent to the API depends on the type of vehicle. In this case, it is a quadcopter.
Handshake should be established between server and client according to data order.
The data is sent in raw string format but its values stands for these variables:

CLIENT                                  // <- fixed prefix for client message
4436ed9a-5228-46c0-b825-6d0a3cd90437    // <- vehicleId
1                                       // <- mode
0                                       // <- vtol
0                                       // <- x
0                                       // <- y
0                                       // <- alt
0                                       // <- yaw
false                                   // <- camTrig
false                                   // <- camTog
0                                       // <- camPitch
false                                   // <- clamp
END                                     // <- fixed ending statement of message

Tests

Some simple instrumented AndroidJUnit4 tests have been implemented:

useAppContext()
loginButtonClicked_Success()
loginButtonClicked_Failed()
swapToRegisterButtonClicked()
registerButtonClicked_Success()
registerButtonClicked_Failed()
swapToLoginButtonClicked()

License

Robot Tasker Client is released under the CC BY-NC-ND 4.0 license.

Author

Sebastian Brzustowicz <Se.Brzustowicz@gmail.com>

About

Java + JUnit. Android application to send requests to a dedicated API. The application enables efficient exchange of data in real time.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages